]> Git Repo - linux.git/commitdiff
USB: musb: fix srp sysfs entry deletion
authorVikram Pandita <[email protected]>
Sat, 21 Feb 2009 23:31:44 +0000 (15:31 -0800)
committerGreg Kroah-Hartman <[email protected]>
Fri, 27 Feb 2009 22:40:51 +0000 (14:40 -0800)
The SRP sysfs attribute is dependent on gadget mode; any
gadget may support SRP.  But "rmmod musb_hdrc" didn't
remove that attribute; fix.

Signed-off-by: Vikram Pandita <[email protected]>
Acked-by: Felipe Balbi <[email protected]>
Signed-off-by: David Brownell <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/musb/musb_core.c

index 60cbaec1aa419858cf5049f38ff0a5c1a4834098..af77e46590065fd5b8890bd819ac20d0cc912b82 100644 (file)
@@ -1816,7 +1816,7 @@ static void musb_free(struct musb *musb)
 #ifdef CONFIG_SYSFS
        device_remove_file(musb->controller, &dev_attr_mode);
        device_remove_file(musb->controller, &dev_attr_vbus);
-#ifdef CONFIG_USB_MUSB_OTG
+#ifdef CONFIG_USB_GADGET_MUSB_HDRC
        device_remove_file(musb->controller, &dev_attr_srp);
 #endif
 #endif
@@ -2064,7 +2064,7 @@ fail2:
 #ifdef CONFIG_SYSFS
        device_remove_file(musb->controller, &dev_attr_mode);
        device_remove_file(musb->controller, &dev_attr_vbus);
-#ifdef CONFIG_USB_MUSB_OTG
+#ifdef CONFIG_USB_GADGET_MUSB_HDRC
        device_remove_file(musb->controller, &dev_attr_srp);
 #endif
 #endif
This page took 0.042824 seconds and 4 git commands to generate.