hwmon: Include <linux/io.h> instead of <asm/io.h>
[deliverable/linux.git] / drivers / hwmon / dme1737.c
index 27a5d397f9a127f40b4d9eedbac8f3a205444414..9814d51b3af42893b607a5106b2e4030b3b87ecf 100644 (file)
@@ -34,7 +34,8 @@
 #include <linux/hwmon-vid.h>
 #include <linux/err.h>
 #include <linux/mutex.h>
-#include <asm/io.h>
+#include <linux/acpi.h>
+#include <linux/io.h>
 
 /* ISA device, if found */
 static struct platform_device *pdev;
@@ -2361,6 +2362,10 @@ static int __init dme1737_isa_device_add(unsigned short addr)
        };
        int err;
 
+       err = acpi_check_resource_conflict(&res);
+       if (err)
+               goto exit;
+
        if (!(pdev = platform_device_alloc("dme1737", addr))) {
                printk(KERN_ERR "dme1737: Failed to allocate device.\n");
                err = -ENOMEM;
This page took 0.026057 seconds and 5 git commands to generate.