X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fchar%2Fppdev.c;h=3aab837d9480ae57e66fb9f438e76efd263fea95;hb=896395c290f902576270d84291c1f7f8bfbe339d;hp=4abd1eff61d667c79297e59235437405b3f6b451;hpb=e9ccb79927225d8cd8d022a7c09bfb2fad935b89;p=~andy%2Flinux diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c index 4abd1eff61d..3aab837d948 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); }