]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Driver core: convert ppdev code to use struct device
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 12 Sep 2006 15:00:10 +0000 (17:00 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Dec 2006 22:52:00 +0000 (14:52 -0800)
Converts from using struct "class_device" to "struct device" making
everything show up properly in /sys/devices/ with symlinks from the
/sys/class directory.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/ppdev.c

index efc485edad1c26ebbb1d3a43a95c9b54f881d617..c1e3dd837fc84fdef05d7eb987935fdfe79b4d78 100644 (file)
@@ -752,13 +752,13 @@ static const struct file_operations pp_fops = {
 
 static void pp_attach(struct parport *port)
 {
-       class_device_create(ppdev_class, NULL, MKDEV(PP_MAJOR, port->number),
-                       NULL, "parport%d", port->number);
+       device_create(ppdev_class, NULL, MKDEV(PP_MAJOR, port->number),
+                       "parport%d", port->number);
 }
 
 static void pp_detach(struct parport *port)
 {
-       class_device_destroy(ppdev_class, MKDEV(PP_MAJOR, port->number));
+       device_destroy(ppdev_class, MKDEV(PP_MAJOR, port->number));
 }
 
 static struct parport_driver pp_driver = {