linux/drivers/platform/mellanox
Kunwu Chan 3494a59431
platform/mellanox: Check devm_hwmon_device_register_with_groups() return value
devm_hwmon_device_register_with_groups() returns an error pointer upon
failure. Check its return value for errors.

Compile-tested only.

Fixes: 1a218d312e ("platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver")
Suggested-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Suggested-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20231201055447.2356001-1-chentao@kylinos.cn
[ij: split the change into two]
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2023-12-04 15:01:46 +02:00
..
Kconfig platform/mellanox: NVSW_SN2201 should depend on ACPI 2023-09-11 13:21:46 +02:00
Makefile platform/mellanox: Add support for new SN2201 system 2022-05-12 15:35:29 +02:00
mlxbf-bootctl.c mlxbf-bootctl: correctly identify secure boot with development keys 2023-12-04 14:43:49 +02:00
mlxbf-bootctl.h mlxbf-bootctl: Support sysfs entries for MFG fields 2023-08-23 17:31:27 +02:00
mlxbf-pmc.c platform/mellanox: Check devm_hwmon_device_register_with_groups() return value 2023-12-04 15:01:46 +02:00
mlxbf-tmfifo-regs.h platform/mellanox: Add BlueField-3 support in the tmfifo driver 2022-11-16 08:48:19 +01:00
mlxbf-tmfifo.c platform-drivers-x86 for v6.7-1 2023-10-31 17:53:00 -10:00
mlxreg-hotplug.c platform/mellanox: mlxreg-hotplug: Convert to platform remove callback returning void 2023-09-28 13:26:25 +03:00
mlxreg-io.c platform/mellanox: mlxreg-io: Convert to platform remove callback returning void 2023-09-28 13:26:27 +03:00
mlxreg-lc.c platform/mellanox: mlxreg-lc: Convert to platform remove callback returning void 2023-09-28 13:26:28 +03:00
nvsw-sn2201.c platform/mellanox: nvsw-sn2201: Convert to platform remove callback returning void 2023-09-28 13:26:31 +03:00