]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix ans-lcd compilation
authorColin Leroy <colin@colino.net>
Fri, 8 Oct 2004 00:33:50 +0000 (17:33 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Oct 2004 00:33:50 +0000 (17:33 -0700)
This patch fixes ans-lcd compilation error and warnings.  See
http://bugzilla.kernel.org/show_bug.cgi?id=3497

Signed-off-by: Colin Leroy <colin@colino.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/macintosh/ans-lcd.c

index 0e130f598a7909cd24d6b83f53fec013e1478a9d..26bdcd7da386779638291c9aace4f297af998584 100644 (file)
@@ -9,6 +9,8 @@
 #include <linux/fcntl.h>
 #include <linux/init.h>
 #include <linux/delay.h>
+#include <linux/fs.h>
+
 #include <asm/uaccess.h>
 #include <asm/sections.h>
 #include <asm/prom.h>
@@ -154,7 +156,7 @@ anslcd_init(void)
        retval = misc_register(&anslcd_dev);
        if(retval < 0){
                printk(KERN_INFO "LCD: misc_register failed\n");
-               iounmap(anslcd_ptr);
+               iounmap((void *)anslcd_ptr);
                return retval;
        }
 
@@ -177,7 +179,7 @@ static void __exit
 anslcd_exit(void)
 {
        misc_deregister(&anslcd_dev);
-       iounmap(anslcd_ptr);
+       iounmap((void *)anslcd_ptr);
 }
 
 module_init(anslcd_init);