ramips: remove port_power_off field from ehci_platform_data
authorGabor Juhos <juhosg@openwrt.org>
Mon, 25 Feb 2013 21:28:38 +0000 (21:28 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 25 Feb 2013 21:28:38 +0000 (21:28 +0000)
It is removed in 3.8. Also add a revert patch for 3.7.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35799

target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
target/linux/ramips/files/arch/mips/ralink/rt3883/devices.c
target/linux/ramips/patches-3.7/a01-revert-ehci-port_power_off-removal.patch [new file with mode: 0644]

index 42429b791e91eb9d58724f0fd8cde645171ec8cb..f16ba6d5f181a14a7af95e9923997c54bf5d38bf 100644 (file)
@@ -356,7 +356,6 @@ static void rt3352_usb_power_off(struct platform_device *pdev)
 }
 
 static struct usb_ehci_pdata rt3352_ehci_data = {
-       .port_power_off = 1,
        .power_on       = rt3352_usb_power_on,
        .power_off      = rt3352_usb_power_off,
 };
index 3a1bf2633322d8d6a300e44a4c5ded986afa2205..6077e97dda5069eb4cb2e389ee92a4eb375e0736 100644 (file)
@@ -177,7 +177,6 @@ static void rt3883_usb_power_off(struct platform_device *pdev)
 }
 
 static struct usb_ehci_pdata rt3883_ehci_data = {
-       .port_power_off = 1,
        .power_on       = rt3883_usb_power_on,
        .power_off      = rt3883_usb_power_off,
 };
diff --git a/target/linux/ramips/patches-3.7/a01-revert-ehci-port_power_off-removal.patch b/target/linux/ramips/patches-3.7/a01-revert-ehci-port_power_off-removal.patch
new file mode 100644 (file)
index 0000000..ad2645a
--- /dev/null
@@ -0,0 +1,22 @@
+reverted:
+--- a/arch/mips/ralink/rt3883/devices.c
++++ b/arch/mips/ralink/rt3883/devices.c
+@@ -177,6 +177,7 @@
+ }
+ static struct usb_ehci_pdata rt3883_ehci_data = {
++      .port_power_off = 1,
+       .power_on       = rt3883_usb_power_on,
+       .power_off      = rt3883_usb_power_off,
+ };
+reverted:
+--- b/arch/mips/ralink/rt305x/devices.c
++++ a/arch/mips/ralink/rt305x/devices.c
+@@ -356,6 +356,7 @@
+ }
+ static struct usb_ehci_pdata rt3352_ehci_data = {
++      .port_power_off = 1,
+       .power_on       = rt3352_usb_power_on,
+       .power_off      = rt3352_usb_power_off,
+ };