From 04a0578de290dc4e021f7a10e67c01e086a54517 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 10 Jul 2007 17:09:57 +0200 Subject: [PATCH] --- yaml --- r: 61818 b: refs/heads/master c: c182f5bbfb399b1fa2ad65107b3caf9c1c69435e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/hwmon/abituguru.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index cff034d42992..e48fa5b722b2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9c2e14afb98f761ec80ea809adbc87b15b060e7b +refs/heads/master: c182f5bbfb399b1fa2ad65107b3caf9c1c69435e diff --git a/trunk/drivers/hwmon/abituguru.c b/trunk/drivers/hwmon/abituguru.c index c6186672405a..d575ee958de5 100644 --- a/trunk/drivers/hwmon/abituguru.c +++ b/trunk/drivers/hwmon/abituguru.c @@ -31,6 +31,7 @@ #include #include #include +#include #include /* Banks */ @@ -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;