Commit 7df25973 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman
Browse files

hwmon: (tmp513) Simplify with dev_err_probe()



[ Upstream commit df989762 ]

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: default avatarAndy 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: default avatarGuenter Roeck <linux@roeck-us.net>
Stable-dep-of: 74d7e038 ("hwmon: (tmp513) Fix interpretation of values of Shunt Voltage and Limit Registers")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d2aa3d50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment