From: Vikram Pandita <[email protected]>

attr_srp is created wrongly for GADGET only mode of MUSB
The attribute is related to OTG mode only

For Gadget mode, this attribute gets created on insmod but does
not get deleted. Fixing the bug.

Signed-off-by: Vikram Pandita <[email protected]>
---

Fixing the comment-line in v2 of this patch

 drivers/usb/musb/musb_core.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 5280dba..6b42667 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -2058,9 +2058,9 @@ bad_config:
 #ifdef CONFIG_SYSFS
        status = device_create_file(dev, &dev_attr_mode);
        status = device_create_file(dev, &dev_attr_vbus);
-#ifdef CONFIG_USB_GADGET_MUSB_HDRC
+#ifdef CONFIG_USB_MUSB_OTG
        status = device_create_file(dev, &dev_attr_srp);
-#endif /* CONFIG_USB_GADGET_MUSB_HDRC */
+#endif /* CONFIG_USB_MUSB_OTG */
        status = 0;
 #endif
        if (status)
-- 
1.6.0.3.613.g9f8f13

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to