diff options
author | John Crispin <blogic@openwrt.org> | 2013-11-20 16:56:32 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-11-20 16:56:32 +0000 |
commit | 3b9b5d38fa3877a769caa4bcf1ac1e521ebb0023 (patch) | |
tree | 4e3fd949cc1223f31b35c8dd35cb95c5dd5d3220 | |
parent | 759c7650c3321808f722de42e34b9686126695a5 (diff) | |
download | master-187ad058-3b9b5d38fa3877a769caa4bcf1ac1e521ebb0023.tar.gz master-187ad058-3b9b5d38fa3877a769caa4bcf1ac1e521ebb0023.tar.bz2 master-187ad058-3b9b5d38fa3877a769caa4bcf1ac1e521ebb0023.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38878 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 07180637e5..d1b1e08a47 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")) |