aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2011-02-13 16:01:07 +0000
committerJohn Crispin <blogic@openwrt.org>2011-02-13 16:01:07 +0000
commit13efb5df3cb958d602ea0801f0e2a1a24880a74b (patch)
treee601976b0a9fbdaf844d8d959cbb243a75886a72 /target
parent6691444d9aaa866f4b76baa26e850b6f7cb990a1 (diff)
downloadupstream-13efb5df3cb958d602ea0801f0e2a1a24880a74b.tar.gz
upstream-13efb5df3cb958d602ea0801f0e2a1a24880a74b.tar.bz2
upstream-13efb5df3cb958d602ea0801f0e2a1a24880a74b.zip
[lantiq]
* fixes dwc_otg init when power gpio is set to -1 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25521 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/lantiq/patches/700-dwc_otg.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/lantiq/patches/700-dwc_otg.patch b/target/linux/lantiq/patches/700-dwc_otg.patch
index 71931555fe..f663062047 100644
--- a/target/linux/lantiq/patches/700-dwc_otg.patch
+++ b/target/linux/lantiq/patches/700-dwc_otg.patch
@@ -6335,16 +6335,16 @@
+static int __devinit
+dwc_otg_driver_probe(struct platform_device *_dev)
+{
-+ int retval = 0;
-+ dwc_otg_device_t *dwc_otg_device;
-+ int32_t snpsid;
++ int retval = 0;
++ dwc_otg_device_t *dwc_otg_device;
++ int pin = (int)_dev->dev.platform_data;
++ int32_t snpsid;
+ struct resource *res;
+ gusbcfg_data_t usbcfg = {.d32 = 0};
+
+ // GPIOs
-+ if(_dev->dev.platform_data >= 0)
++ if(pin >= 0)
+ {
-+ int pin = (int)_dev->dev.platform_data;
+ gpio_request(pin, "usb_power");
+ gpio_direction_output(pin, 1);
+ gpio_set_value(pin, 1);