}
static ssize_t __pmac
-anslcd_write( struct file * file, const char __user * buf,
+anslcd_write( struct file * file, const char * buf,
size_t count, loff_t *ppos )
{
- const char __user *p = buf;
+ const char * p = buf;
int i;
#ifdef DEBUG
anslcd_ioctl( struct inode * inode, struct file * file,
unsigned int cmd, unsigned long arg )
{
- char ch, __user *temp;
+ char ch, *temp;
#ifdef DEBUG
printk(KERN_DEBUG "LCD: ioctl(%d,%d)\n",cmd,arg);
anslcd_write_byte_ctrl ( 0x02 );
return 0;
case ANSLCD_SENDCTRL:
- temp = (char __user *) arg;
+ temp = (char *) arg;
__get_user(ch, temp);
for (; ch; temp++) { /* FIXME: This is ugly, but should work, as a \0 byte is not a valid command code */
anslcd_write_byte_ctrl ( ch );
"* Welcome to *" /* Line #2 */
"********************"; /* Line #4 */
-static int __init
+int __init
anslcd_init(void)
{
int a;
return 0;
}
-static void __exit
-anslcd_exit(void)
-{
- misc_deregister(&anslcd_dev);
- iounmap(anslcd_ptr);
-}
+__initcall(anslcd_init);
-module_init(anslcd_init);
-module_exit(anslcd_exit);