diff options
Diffstat (limited to 'drivers/usb/host/uhci-debug.c')
-rw-r--r-- | drivers/usb/host/uhci-debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/host/uhci-debug.c b/drivers/usb/host/uhci-debug.c index dc286a48cafd..e345f15b7d87 100644 --- a/drivers/usb/host/uhci-debug.c +++ b/drivers/usb/host/uhci-debug.c | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include "uhci-hcd.h" | 17 | #include "uhci-hcd.h" |
18 | 18 | ||
19 | #define uhci_debug_operations (* (struct file_operations *) NULL) | 19 | #define uhci_debug_operations (* (const struct file_operations *) NULL) |
20 | static struct dentry *uhci_debugfs_root; | 20 | static struct dentry *uhci_debugfs_root; |
21 | 21 | ||
22 | #ifdef DEBUG | 22 | #ifdef DEBUG |
@@ -428,7 +428,7 @@ struct uhci_debug { | |||
428 | 428 | ||
429 | static int uhci_debug_open(struct inode *inode, struct file *file) | 429 | static int uhci_debug_open(struct inode *inode, struct file *file) |
430 | { | 430 | { |
431 | struct uhci_hcd *uhci = inode->u.generic_ip; | 431 | struct uhci_hcd *uhci = inode->i_private; |
432 | struct uhci_debug *up; | 432 | struct uhci_debug *up; |
433 | int ret = -ENOMEM; | 433 | int ret = -ENOMEM; |
434 | unsigned long flags; | 434 | unsigned long flags; |
@@ -500,7 +500,7 @@ static int uhci_debug_release(struct inode *inode, struct file *file) | |||
500 | } | 500 | } |
501 | 501 | ||
502 | #undef uhci_debug_operations | 502 | #undef uhci_debug_operations |
503 | static struct file_operations uhci_debug_operations = { | 503 | static const struct file_operations uhci_debug_operations = { |
504 | .owner = THIS_MODULE, | 504 | .owner = THIS_MODULE, |
505 | .open = uhci_debug_open, | 505 | .open = uhci_debug_open, |
506 | .llseek = uhci_debug_lseek, | 506 | .llseek = uhci_debug_lseek, |