]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (asus-ec-sensors) do not print from .probe()
authorEugene Shalygin <eugene.shalygin@gmail.com>
Thu, 17 Feb 2022 19:43:18 +0000 (20:43 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Feb 2022 01:03:18 +0000 (17:03 -0800)
commitbc61fa38e5b0a766599ed0390b7e74076e011c7d
treeb2d77c739bba56f5417237f89d90033fd624e35d
parentc9f67431031bc0683b57941395890fc3952fe098
hwmon: (asus-ec-sensors) do not print from .probe()

Remove the call to dev_info() from the board detection function, which
is called from probe(), not only to be in line with hwmon driver rules, but
also because the message duplicates the error code returned from probe()
for that case (ENODEV).

Changes in:
 - v2: add missing newline (style).

Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20220217194318.2960472-1-eugene.shalygin@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/asus-ec-sensors.c