linux-stable/drivers/platform/mellanox
Kunwu Chan 3c32379695 platform/mellanox: Check devm_hwmon_device_register_with_groups() return value
[ Upstream commit 3494a59431 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-12-13 18:39:07 +01:00
..
Kconfig platform/mellanox: mlxbf-bootctl: add NET dependency into Kconfig 2023-10-06 14:56:53 +02:00
Makefile
mlxbf-bootctl.c mlxbf-bootctl: correctly identify secure boot with development keys 2023-12-13 18:39:07 +01:00
mlxbf-bootctl.h
mlxbf-pmc.c platform/mellanox: Check devm_hwmon_device_register_with_groups() return value 2023-12-13 18:39:07 +01:00
mlxbf-tmfifo-regs.h
mlxbf-tmfifo.c platform/mellanox: mlxbf-tmfifo: Fix a warning message 2023-11-08 14:11:01 +01:00
mlxreg-hotplug.c
mlxreg-io.c platform/mellanox: mlxreg-io: Add locking for io operations 2022-07-14 22:34:42 +02:00
mlxreg-lc.c platform/mellanox: mlxreg-lc: Make error handling flow consistent 2022-09-09 21:58:16 +02: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