WSL2-Linux-Kernel/drivers/platform/mellanox
Kunwu Chan 789fed5702 platform/mellanox: Check devm_hwmon_device_register_with_groups() return value
[ Upstream commit 3494a594315b56516988afb6854d75dee5b501db ]

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:36:35 +01:00
..
Kconfig platform/mellanox: mlxbf-bootctl: add NET dependency into Kconfig 2023-10-06 13:18:16 +02:00
Makefile platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver 2020-10-28 12:00:24 +01:00
mlxbf-bootctl.c mlxbf-bootctl: correctly identify secure boot with development keys 2023-12-13 18:36:35 +01:00
mlxbf-bootctl.h platform/mellanox: Add bootctl driver for Mellanox BlueField Soc 2019-10-15 10:55:10 +03:00
mlxbf-pmc.c platform/mellanox: Check devm_hwmon_device_register_with_groups() return value 2023-12-13 18:36:35 +01:00
mlxbf-tmfifo-regs.h platform/mellanox: Add TmFifo driver for Mellanox BlueField Soc 2019-05-06 17:54:42 +03:00
mlxbf-tmfifo.c platform/mellanox: mlxbf-tmfifo: Fix a warning message 2023-11-08 17:26:47 +01:00
mlxreg-hotplug.c platform/mellanox: mlxreg-hotplug: Revert "move to use request_irq by IRQF_NO_AUTOEN flag" 2021-06-04 22:03:13 +02:00
mlxreg-io.c platform/mellanox: mlxreg-io: Fix read access of n-bytes size attributes 2021-10-11 14:57:22 +02:00