]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/hwmon/pc87427.c
Merge branch 'omap-pool'
[linux-2.6-omap-h63xx.git] / drivers / hwmon / pc87427.c
index 7265f22ae5cd1d6762822c67756e8f1f8967d422..3a8a0f7a7736dd48468ca3dfdd3cb839d046083e 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/mutex.h>
 #include <linux/sysfs.h>
 #include <linux/ioport.h>
+#include <linux/acpi.h>
 #include <asm/io.h>
 
 static unsigned short force_id;
@@ -524,6 +525,10 @@ static int __init pc87427_device_add(unsigned short address)
        };
        int err;
 
+       err = acpi_check_resource_conflict(&res);
+       if (err)
+               goto exit;
+
        pdev = platform_device_alloc(DRVNAME, address);
        if (!pdev) {
                err = -ENOMEM;