diff options
author | Minkyu Kang <mk7.kang@samsung.com> | 2014-01-29 17:04:17 +0900 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2014-02-05 15:37:56 +0900 |
commit | 0ab9a03ca4af90c52640df23242188e32d40ec83 (patch) | |
tree | c4f54c307b4178eab8a506d40bbdc9e6d86a95c1 /arch/arm/cpu | |
parent | 1501cc94162ded8712c6e854969809ff5a0ab595 (diff) | |
download | u-boot-imx-0ab9a03ca4af90c52640df23242188e32d40ec83.zip u-boot-imx-0ab9a03ca4af90c52640df23242188e32d40ec83.tar.gz u-boot-imx-0ab9a03ca4af90c52640df23242188e32d40ec83.tar.bz2 |
exynos: pinmux: remove unnecessary routine
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>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv7/exynos/pinmux.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/cpu/armv7/exynos/pinmux.c b/arch/arm/cpu/armv7/exynos/pinmux.c index 904177a..645c497 100644 --- a/arch/arm/cpu/armv7/exynos/pinmux.c +++ b/arch/arm/cpu/armv7/exynos/pinmux.c @@ -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) |