]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/hwmon/via686a.c
hwmon: Check for ACPI resource conflicts
[linux-2.6-omap-h63xx.git] / drivers / hwmon / via686a.c
index f1ee5e731968d7e5edd0c2e3b0ab1cdd521bd2ba..a022aedcaacbe58b8377f42c96469105582990c4 100644 (file)
@@ -41,6 +41,7 @@
 #include <linux/init.h>
 #include <linux/mutex.h>
 #include <linux/sysfs.h>
+#include <linux/acpi.h>
 #include <asm/io.h>
 
 
@@ -783,6 +784,10 @@ static int __devinit via686a_device_add(unsigned short address)
        };
        int err;
 
+       err = acpi_check_resource_conflict(&res);
+       if (err)
+               goto exit;
+
        pdev = platform_device_alloc("via686a", address);
        if (!pdev) {
                err = -ENOMEM;