hwmon: (raspberrypi) Exit immediately in case of error in init
authorArmin Wolf <W_Armin@gmx.de>
Sat, 11 Dec 2021 18:44:49 +0000 (19:44 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 26 Dec 2021 23:02:06 +0000 (15:02 -0800)
commit9c6d555187f504b880ca506b0b2d0edbdb5d2d5f
tree4a40ee5d5fca6c58195a46b08ecad052b0b86f0a
parentc2fe0f63cafe3fc3adbd0aff6f1758b504ee3cdb
hwmon: (raspberrypi) Exit immediately in case of error in init

Exit immediately if devm_hwmon_device_register_with_info()
fails since registering a delayed work whould be useless
in such a case anyway.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20211211184449.18211-1-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/raspberrypi-hwmon.c