]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/lp.c
device create: char: convert device_create_drvdata to device_create
[linux-2.6-omap-h63xx.git] / drivers / char / lp.c
index 3f2719b9f77b5fca364477dfa7d096c66be759cb..e444c2dba160870658b8ac45910ba79b85d12419 100644 (file)
@@ -813,8 +813,8 @@ static int lp_register(int nr, struct parport *port)
        if (reset)
                lp_reset(nr);
 
-       device_create_drvdata(lp_class, port->dev, MKDEV(LP_MAJOR, nr), NULL,
-                             "lp%d", nr);
+       device_create(lp_class, port->dev, MKDEV(LP_MAJOR, nr), NULL,
+                     "lp%d", nr);
 
        printk(KERN_INFO "lp%d: using %s (%s).\n", nr, port->name, 
               (port->irq == PARPORT_IRQ_NONE)?"polling":"interrupt-driven");