aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorAlistair John Strachan <alistair@devzero.co.uk>2009-01-15 16:27:48 -0500
committerJean Delvare <khali@linux-fr.org>2009-01-15 16:27:48 -0500
commit46a5f173fc88ffc22651162033696d8a9fbcdc5c (patch)
treee4a1ac8140f0ae70e5956f866bb212973ea2d835 /drivers/hwmon
parent3907a8def78a15cd91985c23a3e76b563f36929a (diff)
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>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/abituguru3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/abituguru3.c b/drivers/hwmon/abituguru3.c
index f948ed16e96a..e52b38806d03 100644
--- a/drivers/hwmon/abituguru3.c
+++ b/drivers/hwmon/abituguru3.c
@@ -1165,7 +1165,7 @@ static int __init abituguru3_dmi_detect(void)
1165 1165
1166static inline int abituguru3_dmi_detect(void) 1166static inline int abituguru3_dmi_detect(void)
1167{ 1167{
1168 return -ENODEV; 1168 return 1;
1169} 1169}
1170 1170
1171#endif /* CONFIG_DMI */ 1171#endif /* CONFIG_DMI */