diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-11-16 23:44:41 -0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-11-20 10:30:20 +0100 |
commit | da5019e2b3486b268cb6853257bbb0955add6111 (patch) | |
tree | 96d28d358ff96c23d72426d71caee1e43ddcf371 /board/freescale | |
parent | c9c41d0e2b5b1dd8303dd31131e009524fd238da (diff) | |
download | u-boot-imx-da5019e2b3486b268cb6853257bbb0955add6111.zip u-boot-imx-da5019e2b3486b268cb6853257bbb0955add6111.tar.gz u-boot-imx-da5019e2b3486b268cb6853257bbb0955add6111.tar.bz2 |
mx6slevk: Simplify the return value of setup_fec()
We can simply the return the value from enable_fec_anatop_clock() to make the
code smaller and simpler.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/mx6slevk/mx6slevk.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c index e76c343..8111edf 100644 --- a/board/freescale/mx6slevk/mx6slevk.c +++ b/board/freescale/mx6slevk/mx6slevk.c @@ -230,16 +230,11 @@ int board_eth_init(bd_t *bis) static int setup_fec(void) { struct iomuxc *iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR; - int ret; /* clear gpr1[14], gpr1[18:17] to select anatop clock */ clrsetbits_le32(&iomuxc_regs->gpr[1], IOMUX_GPR1_FEC_MASK, 0); - ret = enable_fec_anatop_clock(ENET_50MHz); - if (ret) - return ret; - - return 0; + return enable_fec_anatop_clock(ENET_50MHz); } #endif |