diff options
Diffstat (limited to 'drivers/usb')
| -rw-r--r-- | drivers/usb/core/inode.c | 4 | ||||
| -rw-r--r-- | drivers/usb/gadget/lh7a40x_udc.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c index e47e3a8ed6e4..f48c3dbc367a 100644 --- a/drivers/usb/core/inode.c +++ b/drivers/usb/core/inode.c | |||
| @@ -200,7 +200,7 @@ static void update_sb(struct super_block *sb) | |||
| 200 | if (!root) | 200 | if (!root) |
| 201 | return; | 201 | return; |
| 202 | 202 | ||
| 203 | mutex_lock(&root->d_inode->i_mutex); | 203 | mutex_lock_nested(&root->d_inode->i_mutex, I_MUTEX_PARENT); |
| 204 | 204 | ||
| 205 | list_for_each_entry(bus, &root->d_subdirs, d_u.d_child) { | 205 | list_for_each_entry(bus, &root->d_subdirs, d_u.d_child) { |
| 206 | if (bus->d_inode) { | 206 | if (bus->d_inode) { |
| @@ -527,7 +527,7 @@ static void fs_remove_file (struct dentry *dentry) | |||
| 527 | if (!parent || !parent->d_inode) | 527 | if (!parent || !parent->d_inode) |
| 528 | return; | 528 | return; |
| 529 | 529 | ||
| 530 | mutex_lock(&parent->d_inode->i_mutex); | 530 | mutex_lock_nested(&parent->d_inode->i_mutex, I_MUTEX_PARENT); |
| 531 | if (usbfs_positive(dentry)) { | 531 | if (usbfs_positive(dentry)) { |
| 532 | if (dentry->d_inode) { | 532 | if (dentry->d_inode) { |
| 533 | if (S_ISDIR(dentry->d_inode->i_mode)) | 533 | if (S_ISDIR(dentry->d_inode->i_mode)) |
diff --git a/drivers/usb/gadget/lh7a40x_udc.c b/drivers/usb/gadget/lh7a40x_udc.c index bb22b7e82877..36db72579377 100644 --- a/drivers/usb/gadget/lh7a40x_udc.c +++ b/drivers/usb/gadget/lh7a40x_udc.c | |||
| @@ -2143,7 +2143,7 @@ static int lh7a40x_udc_remove(struct platform_device *pdev) | |||
| 2143 | 2143 | ||
| 2144 | static struct platform_driver udc_driver = { | 2144 | static struct platform_driver udc_driver = { |
| 2145 | .probe = lh7a40x_udc_probe, | 2145 | .probe = lh7a40x_udc_probe, |
| 2146 | .remove = lh7a40x_udc_remove | 2146 | .remove = lh7a40x_udc_remove, |
| 2147 | /* FIXME power management support */ | 2147 | /* FIXME power management support */ |
| 2148 | /* .suspend = ... disable UDC */ | 2148 | /* .suspend = ... disable UDC */ |
| 2149 | /* .resume = ... re-enable UDC */ | 2149 | /* .resume = ... re-enable UDC */ |
