linux-stable/drivers/platform
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
..
chrome USB/Thunderbolt changes for 6.7-rc1 2023-11-03 16:00:42 -10:00
goldfish
loongarch
mellanox platform/mellanox: Check devm_hwmon_device_register_with_groups() return value 2023-12-04 15:01:46 +02:00
mips
olpc platform/olpc: olpc-xo175-ec: Use SPI device ID data to bind device 2023-03-20 14:43:35 +01:00
surface platform/surface: aggregator: fix recv_buf() return value 2023-11-29 11:07:02 +02:00
x86 platform/x86: wmi: Skip blocks with zero instances 2023-11-30 13:53:50 +02:00
Kconfig
Makefile