Skip to content

Commit d07143b

Browse files
aloktiwaij-intel
authored andcommitted
platform/mellanox: nvsw-sn2201: Fix bus number in adapter error message
change error log to use correct bus number from main_mux_devs instead of cpld_devs. Fixes: 662f248 ("platform/mellanox: Add support for new SN2201 system") Signed-off-by: Alok Tiwari <[email protected]> Reviewed-by: Vadim Pasternak <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent c3ac7e3 commit d07143b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/mellanox/nvsw-sn2201.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ static int nvsw_sn2201_i2c_completion_notify(void *handle, int id)
11811181
if (!nvsw_sn2201->main_mux_devs->adapter) {
11821182
err = -ENODEV;
11831183
dev_err(nvsw_sn2201->dev, "Failed to get adapter for bus %d\n",
1184-
nvsw_sn2201->cpld_devs->nr);
1184+
nvsw_sn2201->main_mux_devs->nr);
11851185
goto i2c_get_adapter_main_fail;
11861186
}
11871187

0 commit comments

Comments
 (0)