mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 01:43:18 +00:00
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 <[email protected]>
Suggested-by: Vadim Pasternak <[email protected]>
Signed-off-by: Kunwu Chan <[email protected]>
Reviewed-by: Vadim Pasternak <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ij: split the change into two]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>