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 <alok.a.tiwari@oracle.com> Reviewed-by: Vadim Pasternak <vadimp@nvidia.com> Link: https://lore.kernel.org/r/20250622072921.4111552-2-alok.a.tiwari@oracle.com Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent c3ac7e3 commit d07143b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)