]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/ppdev.c
drm: radeon add a tcl state flush before accessing tcl vector space
[linux-2.6-omap-h63xx.git] / drivers / char / ppdev.c
index 0e22880432bca3d8c89be8c7b0a6ffabbd05fc03..bee6c47b45bdd162e33e50e32171667dd6df8df8 100644 (file)
 #include <linux/parport.h>
 #include <linux/ctype.h>
 #include <linux/poll.h>
-#include <asm/uaccess.h>
+#include <linux/major.h>
 #include <linux/ppdev.h>
 #include <linux/smp_lock.h>
 #include <linux/device.h>
+#include <asm/uaccess.h>
 
 #define PP_VERSION "ppdev: user-space parallel port driver"
 #define CHRDEV "ppdev"
@@ -752,7 +753,7 @@ static struct file_operations pp_fops = {
 
 static void pp_attach(struct parport *port)
 {
-       class_device_create(ppdev_class, MKDEV(PP_MAJOR, port->number),
+       class_device_create(ppdev_class, NULL, MKDEV(PP_MAJOR, port->number),
                        NULL, "parport%d", port->number);
 }