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>
#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>
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;
}
anslcd_exit(void)
{
misc_deregister(&anslcd_dev);
- iounmap(anslcd_ptr);
+ iounmap((void *)anslcd_ptr);
}
module_init(anslcd_init);