]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
exynos: pinmux: remove unnecessary routine
authorMinkyu Kang <mk7.kang@samsung.com>
Wed, 29 Jan 2014 08:04:17 +0000 (17:04 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 5 Feb 2014 06:37:56 +0000 (15:37 +0900)
Because of the list of peripherals is not sequential,
such a routine does not check for valid correctly.
Error check will be done when call the exynos_pinmux_config function.

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
arch/arm/cpu/armv7/exynos/pinmux.c

index 904177a149de65814205b2047d774927de4eda8e..645c497370294843beda48a5d28d3234dcc8c97c 100644 (file)
@@ -751,12 +751,7 @@ static int exynos5_pinmux_decode_periph_id(const void *blob, int node)
        if (err)
                return PERIPH_ID_NONE;
 
-       /* check for invalid peripheral id */
-       if ((PERIPH_ID_SDMMC4 > cell[1]) || (cell[1] < PERIPH_ID_UART0))
-               return cell[1];
-
-       debug(" invalid peripheral id\n");
-       return PERIPH_ID_NONE;
+       return cell[1];
 }
 
 int pinmux_decode_periph_id(const void *blob, int node)