]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
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)
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

index f948ed16e96a75f47df49a37436929ae38d81cbc..e52b38806d034f4ac835bf626907d933f368a3de 100644 (file)
@@ -1165,7 +1165,7 @@ static int __init abituguru3_dmi_detect(void)
 
 static inline int abituguru3_dmi_detect(void)
 {
-       return -ENODEV;
+       return 1;
 }
 
 #endif /* CONFIG_DMI */