From: Greg Kroah-Hartman Date: Tue, 12 Sep 2006 15:00:10 +0000 (+0200) Subject: Driver core: convert ppdev code to use struct device X-Git-Tag: MMI-PSA29.97-13-9~44978^2~47^2~575^2~17 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=04880edae5e1027d61241beb5ac37b520755f2ab;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Driver core: convert ppdev code to use struct device 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 --- diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c index efc485edad1c..c1e3dd837fc8 100644 --- a/drivers/char/ppdev.c +++ b/drivers/char/ppdev.c @@ -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 = {