diff options
author | John Crispin <blogic@openwrt.org> | 2012-12-15 01:59:45 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-12-15 01:59:45 +0000 |
commit | 48db0765a608660ca54014e7b579c9de7b423590 (patch) | |
tree | b01c98dfee8ccdd18862f3049d7dfdcca7828c3a /target/linux/lantiq/patches-3.7/0124-pci_fix.patch | |
parent | 39d02a1398afb88290273276c545a0e9c267f69b (diff) | |
download | master-187ad058-48db0765a608660ca54014e7b579c9de7b423590.tar.gz master-187ad058-48db0765a608660ca54014e7b579c9de7b423590.tar.bz2 master-187ad058-48db0765a608660ca54014e7b579c9de7b423590.zip |
[lantiq] add linux-v3.7
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34687 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-3.7/0124-pci_fix.patch')
-rw-r--r-- | target/linux/lantiq/patches-3.7/0124-pci_fix.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-3.7/0124-pci_fix.patch b/target/linux/lantiq/patches-3.7/0124-pci_fix.patch new file mode 100644 index 0000000000..013dac76cb --- /dev/null +++ b/target/linux/lantiq/patches-3.7/0124-pci_fix.patch @@ -0,0 +1,22 @@ +Index: linux-3.7-rc8/arch/mips/pci/pci-lantiq.c +=================================================================== +--- linux-3.7-rc8.orig/arch/mips/pci/pci-lantiq.c 2012-12-03 20:22:37.000000000 +0100 ++++ linux-3.7-rc8/arch/mips/pci/pci-lantiq.c 2012-12-14 23:28:24.355606776 +0100 +@@ -129,8 +129,15 @@ + + /* setup reset gpio used by pci */ + reset_gpio = of_get_named_gpio(node, "gpio-reset", 0); +- if (gpio_is_valid(reset_gpio)) +- devm_gpio_request(&pdev->dev, reset_gpio, "pci-reset"); ++ if (gpio_is_valid(reset_gpio)) { ++ int ret = devm_gpio_request(&pdev->dev, reset_gpio, "pci-reset"); ++ if (ret) { ++ dev_err(&pdev->dev, ++ "failed to request gpio %d\n", reset_gpio); ++ return ret; ++ } ++ gpio_direction_output(reset_gpio, 1); ++ } + + /* enable auto-switching between PCI and EBU */ + ltq_pci_w32(0xa, PCI_CR_CLK_CTRL); |