Commit 66baf338 authored by Colin Leroy's avatar Colin Leroy Committed by Linus Torvalds

[PATCH] fix ans-lcd compilation

This patch fixes ans-lcd compilation error and warnings.  See
http://bugzilla.kernel.org/show_bug.cgi?id=3497Signed-off-by: default avatarColin Leroy <colin@colino.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c70a904e
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
#include <linux/fcntl.h> #include <linux/fcntl.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/fs.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/sections.h> #include <asm/sections.h>
#include <asm/prom.h> #include <asm/prom.h>
...@@ -154,7 +156,7 @@ anslcd_init(void) ...@@ -154,7 +156,7 @@ anslcd_init(void)
retval = misc_register(&anslcd_dev); retval = misc_register(&anslcd_dev);
if(retval < 0){ if(retval < 0){
printk(KERN_INFO "LCD: misc_register failed\n"); printk(KERN_INFO "LCD: misc_register failed\n");
iounmap(anslcd_ptr); iounmap((void *)anslcd_ptr);
return retval; return retval;
} }
...@@ -177,7 +179,7 @@ static void __exit ...@@ -177,7 +179,7 @@ static void __exit
anslcd_exit(void) anslcd_exit(void)
{ {
misc_deregister(&anslcd_dev); misc_deregister(&anslcd_dev);
iounmap(anslcd_ptr); iounmap((void *)anslcd_ptr);
} }
module_init(anslcd_init); module_init(anslcd_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment