diff options
Diffstat (limited to 'drivers/usb/host/uhci-debug.c')
-rw-r--r-- | drivers/usb/host/uhci-debug.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/host/uhci-debug.c b/drivers/usb/host/uhci-debug.c index 6637a0e4997..e345f15b7d8 100644 --- a/drivers/usb/host/uhci-debug.c +++ b/drivers/usb/host/uhci-debug.c | |||
@@ -9,7 +9,6 @@ | |||
9 | * (C) Copyright 1999-2001 Johannes Erdfelt | 9 | * (C) Copyright 1999-2001 Johannes Erdfelt |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/config.h> | ||
13 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
14 | #include <linux/debugfs.h> | 13 | #include <linux/debugfs.h> |
15 | #include <linux/smp_lock.h> | 14 | #include <linux/smp_lock.h> |
@@ -17,7 +16,7 @@ | |||
17 | 16 | ||
18 | #include "uhci-hcd.h" | 17 | #include "uhci-hcd.h" |
19 | 18 | ||
20 | #define uhci_debug_operations (* (struct file_operations *) NULL) | 19 | #define uhci_debug_operations (* (const struct file_operations *) NULL) |
21 | static struct dentry *uhci_debugfs_root; | 20 | static struct dentry *uhci_debugfs_root; |
22 | 21 | ||
23 | #ifdef DEBUG | 22 | #ifdef DEBUG |
@@ -429,7 +428,7 @@ struct uhci_debug { | |||
429 | 428 | ||
430 | static int uhci_debug_open(struct inode *inode, struct file *file) | 429 | static int uhci_debug_open(struct inode *inode, struct file *file) |
431 | { | 430 | { |
432 | struct uhci_hcd *uhci = inode->u.generic_ip; | 431 | struct uhci_hcd *uhci = inode->i_private; |
433 | struct uhci_debug *up; | 432 | struct uhci_debug *up; |
434 | int ret = -ENOMEM; | 433 | int ret = -ENOMEM; |
435 | unsigned long flags; | 434 | unsigned long flags; |
@@ -501,7 +500,7 @@ static int uhci_debug_release(struct inode *inode, struct file *file) | |||
501 | } | 500 | } |
502 | 501 | ||
503 | #undef uhci_debug_operations | 502 | #undef uhci_debug_operations |
504 | static struct file_operations uhci_debug_operations = { | 503 | static const struct file_operations uhci_debug_operations = { |
505 | .owner = THIS_MODULE, | 504 | .owner = THIS_MODULE, |
506 | .open = uhci_debug_open, | 505 | .open = uhci_debug_open, |
507 | .llseek = uhci_debug_lseek, | 506 | .llseek = uhci_debug_lseek, |