From: Alistair John Strachan Date: Thu, 15 Jan 2009 21:27:48 +0000 (+0100) Subject: hwmon: (abituguru3) Fix CONFIG_DMI=n fallback to probe X-Git-Tag: v2.6.28.2~14 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c459c4d854842c4bd3a118b7d300da5f16fee6c2;p=karo-tx-linux.git hwmon: (abituguru3) Fix CONFIG_DMI=n fallback to probe commit 46a5f173fc88ffc22651162033696d8a9fbcdc5c upstream. 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 Cc: Hans de Goede Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwmon/abituguru3.c b/drivers/hwmon/abituguru3.c index 70bb854086df..fcf74ebb5ff9 100644 --- a/drivers/hwmon/abituguru3.c +++ b/drivers/hwmon/abituguru3.c @@ -1153,7 +1153,7 @@ static int __init abituguru3_dmi_detect(void) static inline int abituguru3_dmi_detect(void) { - return -ENODEV; + return 1; } #endif /* CONFIG_DMI */