diff options
author | John Crispin <john@openwrt.org> | 2013-11-20 16:56:32 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-11-20 16:56:32 +0000 |
commit | 06ada4b10fa026625afe0cccd389124791501d42 (patch) | |
tree | 81726fbc00b36c7ea20a0ad91f2cc6d55d36ae2b /target/linux/lantiq/patches-3.10 | |
parent | 2bc70cfbace7d696ae37215e7895d4572d2b3f4d (diff) | |
download | mtk-20170518-06ada4b10fa026625afe0cccd389124791501d42.zip mtk-20170518-06ada4b10fa026625afe0cccd389124791501d42.tar.gz mtk-20170518-06ada4b10fa026625afe0cccd389124791501d42.tar.bz2 |
lantiq: fix an endless loop in the vmmc platform code
this was caused by not honoured error return codes of of_gpio_count()
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38878
Diffstat (limited to 'target/linux/lantiq/patches-3.10')
-rw-r--r-- | target/linux/lantiq/patches-3.10/0007-MIPS-lantiq-handle-vmmc-memory-reservation.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/lantiq/patches-3.10/0007-MIPS-lantiq-handle-vmmc-memory-reservation.patch b/target/linux/lantiq/patches-3.10/0007-MIPS-lantiq-handle-vmmc-memory-reservation.patch index 0718063..d1b1e08 100644 --- a/target/linux/lantiq/patches-3.10/0007-MIPS-lantiq-handle-vmmc-memory-reservation.patch +++ b/target/linux/lantiq/patches-3.10/0007-MIPS-lantiq-handle-vmmc-memory-reservation.patch @@ -54,7 +54,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org> + (void*)CPHYSADDR(dma_alloc_coherent(NULL, CP1_SIZE, &dma, GFP_ATOMIC)); + + gpio_count = of_gpio_count(pdev->dev.of_node); -+ while (gpio_count) { ++ while (gpio_count > 0) { + enum of_gpio_flags flags; + int gpio = of_get_gpio_flags(pdev->dev.of_node, --gpio_count, &flags); + if (gpio_request(gpio, "vmmc-relay")) |