]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/arm/am79c961a.c
hwmon: (lm90) Don't spam the kernel log
[linux-2.6-omap-h63xx.git] / drivers / net / arm / am79c961a.c
index ba6bd03a015ff6afad60ae65d8c614b35a6671d4..aa4a5246be534a483e6ec42a6b67ba8986e371cd 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/bitops.h>
 #include <linux/platform_device.h>
 
-#include <asm/hardware.h>
+#include <mach/hardware.h>
 #include <asm/io.h>
 #include <asm/system.h>
 
@@ -693,11 +693,15 @@ static int __init am79c961_probe(struct platform_device *pdev)
         * done by the ether bootp loader.
         */
        dev->base_addr = res->start;
-       dev->irq = platform_get_irq(pdev, 0);
+       ret = platform_get_irq(pdev, 0);
 
-       ret = -ENODEV;
-       if (dev->irq < 0)
+       if (ret < 0) {
+               ret = -ENODEV;
                goto nodev;
+       }
+       dev->irq = ret;
+
+       ret = -ENODEV;
        if (!request_region(dev->base_addr, 0x18, dev->name))
                goto nodev;