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: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: 74d7e038 ("hwmon: (tmp513) Fix interpretation of values of Shunt Voltage and Limit Registers") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading