summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2011-02-13 16:01:07 +0000
committerJohn Crispin <john@openwrt.org>2011-02-13 16:01:07 +0000
commit34e5998921fdc55e981b4039eb3ccac8ddf6d05f (patch)
tree8cf454c0c28bc61222d7d58ca32ec4cc2c8a2d39
parent240b10673d5bb2b4fab34e6c4c5b8854fdfd6798 (diff)
downloadmtk-20170518-34e5998921fdc55e981b4039eb3ccac8ddf6d05f.zip
mtk-20170518-34e5998921fdc55e981b4039eb3ccac8ddf6d05f.tar.gz
mtk-20170518-34e5998921fdc55e981b4039eb3ccac8ddf6d05f.tar.bz2
* fixes dwc_otg init when power gpio is set to -1
SVN-Revision: 25521
-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 7193155..f663062 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);