diff options
Diffstat (limited to 'drivers/usb/core/sysfs.c')
| -rw-r--r-- | drivers/usb/core/sysfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c index 4cc2456ef3be..c66789197927 100644 --- a/drivers/usb/core/sysfs.c +++ b/drivers/usb/core/sysfs.c | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
| 14 | #include <linux/string.h> | 14 | #include <linux/string.h> |
| 15 | #include <linux/usb.h> | 15 | #include <linux/usb.h> |
| 16 | #include <linux/usb/quirks.h> | ||
| 16 | #include "usb.h" | 17 | #include "usb.h" |
| 17 | 18 | ||
| 18 | /* Active configuration fields */ | 19 | /* Active configuration fields */ |
| @@ -813,7 +814,8 @@ int usb_create_sysfs_intf_files(struct usb_interface *intf) | |||
| 813 | if (intf->sysfs_files_created || intf->unregistering) | 814 | if (intf->sysfs_files_created || intf->unregistering) |
| 814 | return 0; | 815 | return 0; |
| 815 | 816 | ||
| 816 | if (alt->string == NULL) | 817 | if (alt->string == NULL && |
| 818 | !(udev->quirks & USB_QUIRK_CONFIG_INTF_STRINGS)) | ||
| 817 | alt->string = usb_cache_string(udev, alt->desc.iInterface); | 819 | alt->string = usb_cache_string(udev, alt->desc.iInterface); |
| 818 | if (alt->string) | 820 | if (alt->string) |
| 819 | retval = device_create_file(&intf->dev, &dev_attr_interface); | 821 | retval = device_create_file(&intf->dev, &dev_attr_interface); |
