]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/ppdev.c
device create: char: convert device_create_drvdata to device_create
[linux-2.6-omap-h63xx.git] / drivers / char / ppdev.c
index bee39fdfba738de8a11429a1d2c57caa7b99cc26..c84c34fb123116d0b43b0ec491aacce84342f5bc 100644 (file)
@@ -760,9 +760,8 @@ static const struct file_operations pp_fops = {
 
 static void pp_attach(struct parport *port)
 {
-       device_create_drvdata(ppdev_class, port->dev,
-                             MKDEV(PP_MAJOR, port->number),
-                             NULL, "parport%d", port->number);
+       device_create(ppdev_class, port->dev, MKDEV(PP_MAJOR, port->number),
+                     NULL, "parport%d", port->number);
 }
 
 static void pp_detach(struct parport *port)