]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (abituguru3) Fix CONFIG_DMI=n fallback to probe
authorAlistair John Strachan <alistair@devzero.co.uk>
Thu, 15 Jan 2009 21:27:48 +0000 (22:27 +0100)
committerJean Delvare <khali@linux-fr.org>
Thu, 15 Jan 2009 21:27:48 +0000 (22:27 +0100)
commit506d8ca6045ab02988d4279243528b492bd902f5
treee4a1ac8140f0ae70e5956f866bb212973ea2d835
parent56cce92529da48aaac5c74b96517bfce987665f0
hwmon: (abituguru3) Fix CONFIG_DMI=n fallback to probe

When CONFIG_DMI is not enabled, dmi detection should flag that no board
could be detected (err=1) rather than another error condition (err<0).

This fixes the fallback to manual probing for all motherboards, even
those without DMI strings, when CONFIG_DMI=n.

Signed-off-by: Alistair John Strachan <alistair@devzero.co.uk>
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/abituguru3.c