]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 25 Jan 2009 00:41:46 +0000 (16:41 -0800)
commitc459c4d854842c4bd3a118b7d300da5f16fee6c2
tree1b60dd6cb821a1bb1085a32683d2aac0d40c1e2d
parentc185df273d7364bbb654070d3a77b3c635ff8e34
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 <alistair@devzero.co.uk>
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/abituguru3.c