]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/hwmon/smsc47m1.c
Merge branch 'omap-clock-for-next' of git://git.pwsan.com/linux-2.6 into devel
[mv-sheeva.git] / drivers / hwmon / smsc47m1.c
index d1b4985487365b1ce23217d1ddfb09316e3e6689..a92dbb97ee999255e1ad3d79da106894e83282ef 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/init.h>
 #include <linux/mutex.h>
 #include <linux/sysfs.h>
+#include <linux/acpi.h>
 #include <asm/io.h>
 
 static unsigned short force_id;
@@ -705,6 +706,10 @@ static int __init smsc47m1_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;