]> err.no Git - linux-2.6/blobdiff - drivers/char/stallion.c
drivers/mmc/host/sdhci.h needs scatterlist.h
[linux-2.6] / drivers / char / stallion.c
index de5a725c3cc0493ddfcdb19f9074561c584638b4..19db1eb87c26fa22eb9e4f17d8b6ec384e6c021b 100644 (file)
@@ -1256,7 +1256,6 @@ static int stl_tiocmset(struct tty_struct *tty, struct file *file,
 static int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg)
 {
        struct stlport  *portp;
-       unsigned int    ival;
        int             rc;
        void __user *argp = (void __user *)arg;
 
@@ -4755,8 +4754,8 @@ static int __init stallion_module_init(void)
        if (IS_ERR(stallion_class))
                printk("STALLION: failed to create class\n");
        for (i = 0; i < 4; i++)
-               device_create(stallion_class, NULL, MKDEV(STL_SIOMEMMAJOR, i),
-                             "staliomem%d", i);
+               device_create_drvdata(stallion_class, NULL, MKDEV(STL_SIOMEMMAJOR, i),
+                                     NULL, "staliomem%d", i);
 
        return 0;
 err_unrtty: