linux/drivers/platform/mellanox
Dan Carpenter 79e90ca02d platform/mellanox: nvsw-sn2201: fix error code in nvsw_sn2201_create_static_devices()
This should return PTR_ERR() instead of IS_ERR().  Also "dev->client"
has been set to NULL by this point so it returns 0/success so preserve
the error code earlier.

Fixes: 662f24826f ("platform/mellanox: Add support for new SN2201 system")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Michael Shych <michaelsh@nvidia.com>
Link: https://lore.kernel.org/r/YqmUGwmPK7cPolk/@kili
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-06-27 09:38:56 +02:00
..
Kconfig platform/mellanox: Spelling s/platfom/platform/ 2022-06-10 21:09:49 +02:00
Makefile platform/mellanox: Add support for new SN2201 system 2022-05-12 15:35:29 +02:00
mlxbf-bootctl.c platform/mellanox: Typo fix in the file mlxbf-bootctl.c 2021-03-23 21:06:04 +01:00
mlxbf-bootctl.h
mlxbf-pmc.c platform/mellanox: mlxbf-pmc: Fix an IS_ERR() vs NULL bug in mlxbf_pmc_map_counters 2021-12-21 19:35:22 +01:00
mlxbf-tmfifo-regs.h
mlxbf-tmfifo.c platform/mellanox: mlxbf-tmfifo: Fix a memory barrier issue 2021-05-19 15:24:52 +02:00
mlxreg-hotplug.c platform/mellanox: mlxreg-hotplug: Extend logic for hotplug devices operations 2021-10-19 10:41:55 +02:00
mlxreg-io.c platform/mellanox: mlxreg-io: Extend number of hwmon attributes 2021-10-19 10:41:55 +02:00
mlxreg-lc.c platform/mellanox: mlxreg-lc: fix error code in mlxreg_lc_create_static_devices() 2021-11-16 10:19:46 +01:00
nvsw-sn2201.c platform/mellanox: nvsw-sn2201: fix error code in nvsw_sn2201_create_static_devices() 2022-06-27 09:38:56 +02:00