mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00:00
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>
This commit is contained in:
parent
1501cc9416
commit
0ab9a03ca4
1 changed files with 1 additions and 6 deletions
|
@ -751,12 +751,7 @@ static int exynos5_pinmux_decode_periph_id(const void *blob, int node)
|
||||||
if (err)
|
if (err)
|
||||||
return PERIPH_ID_NONE;
|
return PERIPH_ID_NONE;
|
||||||
|
|
||||||
/* check for invalid peripheral id */
|
|
||||||
if ((PERIPH_ID_SDMMC4 > cell[1]) || (cell[1] < PERIPH_ID_UART0))
|
|
||||||
return cell[1];
|
return cell[1];
|
||||||
|
|
||||||
debug(" invalid peripheral id\n");
|
|
||||||
return PERIPH_ID_NONE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int pinmux_decode_periph_id(const void *blob, int node)
|
int pinmux_decode_periph_id(const void *blob, int node)
|
||||||
|
|
Loading…
Reference in a new issue