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 @@
#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);
......
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