X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fchar%2Fppdev.c;h=3aab837d9480ae57e66fb9f438e76efd263fea95;hb=90621ed829ac64eb25b4d1214e9a5155e5c67ff2;hp=4abd1eff61d667c79297e59235437405b3f6b451;hpb=eb991b39385c7b04923d701764a34694ec54b53d;p=linux-2.6 diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c index 4abd1eff61..3aab837d94 100644 --- a/drivers/char/ppdev.c +++ b/drivers/char/ppdev.c @@ -66,8 +66,6 @@ #include #include #include -#include -#include #include #define PP_VERSION "ppdev: user-space parallel port driver" @@ -269,9 +267,9 @@ static ssize_t pp_write (struct file * file, const char __user * buf, return bytes_written; } -static void pp_irq (int irq, void * private) +static void pp_irq (void *private) { - struct pp_struct * pp = (struct pp_struct *) private; + struct pp_struct *pp = private; if (pp->irqresponse) { parport_write_control (pp->pdev->port, pp->irqctl); @@ -752,7 +750,7 @@ static const struct file_operations pp_fops = { 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); }