]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/hwmon/vt1211.c
Extra omap code in linux-omap tree
[linux-2.6-omap-h63xx.git] / drivers / hwmon / vt1211.c
index 12b43590fa53e7a5aa80e325b409437277be8dc1..73f77a9b8b188fb15840beea34d5f2f07a8d8a4f 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/err.h>
 #include <linux/mutex.h>
 #include <linux/ioport.h>
+#include <linux/acpi.h>
 #include <asm/io.h>
 
 static int uch_config = -1;
@@ -1259,6 +1260,10 @@ static int __init vt1211_device_add(unsigned short address)
        }
 
        res.name = pdev->name;
+       err = acpi_check_resource_conflict(&res);
+       if (err)
+               goto EXIT_DEV_PUT;
+
        err = platform_device_add_resources(pdev, &res, 1);
        if (err) {
                printk(KERN_ERR DRVNAME ": Device resource addition failed "