]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: (tmp513) Simplify with dev_err_probe()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 28 Nov 2023 18:06:03 +0000 (20:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:28:33 +0000 (13:28 +0100)
commite9668ba824c101e75e7b3433443ee8ce88e90ad9
tree4c6a82835e2ae2d7d75125aaf532a5e034ac42ff
parent9a2cf6d4a616ee0c5553b4034a74a1d38aa8a67f
hwmon: (tmp513) Simplify with dev_err_probe()

[ Upstream commit df989762bc4b71068e6adc0c2b5ef6f76b6acf74 ]

Common pattern of handling deferred probe can be simplified with
dev_err_probe().  Less code and also it prints the error value.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231128180654.395692-3-andriy.shevchenko@linux.intel.com
[groeck: Fixed excessive line length]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Stable-dep-of: 74d7e038fd07 ("hwmon: (tmp513) Fix interpretation of values of Shunt Voltage and Limit Registers")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/tmp513.c