Skip to content

Commit

Permalink
hwmon: (abituguru3) Fix CONFIG_DMI=n fallback to probe
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alistair John Strachan authored and Jean Delvare committed Jan 15, 2009
1 parent 3907a8d commit 46a5f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/abituguru3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 46a5f17

Please sign in to comment.