diff options
Diffstat (limited to 'drivers/char/ppdev.c')
-rw-r--r-- | drivers/char/ppdev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c index 4abd1eff61d6..84ac64fc48a1 100644 --- a/drivers/char/ppdev.c +++ b/drivers/char/ppdev.c | |||
@@ -66,7 +66,6 @@ | |||
66 | #include <linux/poll.h> | 66 | #include <linux/poll.h> |
67 | #include <linux/major.h> | 67 | #include <linux/major.h> |
68 | #include <linux/ppdev.h> | 68 | #include <linux/ppdev.h> |
69 | #include <linux/smp_lock.h> | ||
70 | #include <linux/device.h> | 69 | #include <linux/device.h> |
71 | #include <asm/uaccess.h> | 70 | #include <asm/uaccess.h> |
72 | 71 | ||
@@ -752,7 +751,7 @@ static const struct file_operations pp_fops = { | |||
752 | 751 | ||
753 | static void pp_attach(struct parport *port) | 752 | static void pp_attach(struct parport *port) |
754 | { | 753 | { |
755 | device_create(ppdev_class, NULL, MKDEV(PP_MAJOR, port->number), | 754 | device_create(ppdev_class, port->dev, MKDEV(PP_MAJOR, port->number), |
756 | "parport%d", port->number); | 755 | "parport%d", port->number); |
757 | } | 756 | } |
758 | 757 | ||