Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61818
b: refs/heads/master
c: c182f5b
h: refs/heads/master
v: v3
  • Loading branch information
Hans de Goede authored and Mark M. Hoffman committed Jul 19, 2007
1 parent 417379c commit 04a0578
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9c2e14afb98f761ec80ea809adbc87b15b060e7b
refs/heads/master: c182f5bbfb399b1fa2ad65107b3caf9c1c69435e
10 changes: 10 additions & 0 deletions trunk/drivers/hwmon/abituguru.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <linux/platform_device.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/dmi.h>
#include <asm/io.h>

/* Banks */
Expand Down Expand Up @@ -1447,6 +1448,15 @@ static int __init abituguru_init(void)
int address, err;
struct resource res = { .flags = IORESOURCE_IO };

#ifdef CONFIG_DMI
char *board_vendor = dmi_get_system_info(DMI_BOARD_VENDOR);

/* safety check, refuse to load on non Abit motherboards */
if (!force && (!board_vendor ||
strcmp(board_vendor, "http://www.abit.com.tw/")))
return -ENODEV;
#endif

address = abituguru_detect();
if (address < 0)
return address;
Expand Down

0 comments on commit 04a0578

Please sign in to comment.