projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dm: delay target
[powerpc.git]
/
drivers
/
char
/
ppdev.c
diff --git
a/drivers/char/ppdev.c
b/drivers/char/ppdev.c
index
4abd1ef
..
84ac64f
100644
(file)
--- a/
drivers/char/ppdev.c
+++ b/
drivers/char/ppdev.c
@@
-66,7
+66,6
@@
#include <linux/poll.h>
#include <linux/major.h>
#include <linux/ppdev.h>
#include <linux/poll.h>
#include <linux/major.h>
#include <linux/ppdev.h>
-#include <linux/smp_lock.h>
#include <linux/device.h>
#include <asm/uaccess.h>
#include <linux/device.h>
#include <asm/uaccess.h>
@@
-752,7
+751,7
@@
static const struct file_operations pp_fops = {
static void pp_attach(struct parport *port)
{
static void pp_attach(struct parport *port)
{
- device_create(ppdev_class,
NULL
, MKDEV(PP_MAJOR, port->number),
+ device_create(ppdev_class,
port->dev
, MKDEV(PP_MAJOR, port->number),
"parport%d", port->number);
}
"parport%d", port->number);
}