summaryrefslogtreecommitdiff
path: root/board/freescale/mx6sxsabresd
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-11-16 23:44:42 -0200
committerStefano Babic <sbabic@denx.de>2014-11-20 10:30:20 +0100
commitd7bc7e60310a49a680bd4a79ba525e74f82aa2ea (patch)
tree5fce81834ea5b158dc598cc7f0a12ca728afb8a1 /board/freescale/mx6sxsabresd
parentda5019e2b3486b268cb6853257bbb0955add6111 (diff)
downloadu-boot-imx-d7bc7e60310a49a680bd4a79ba525e74f82aa2ea.zip
u-boot-imx-d7bc7e60310a49a680bd4a79ba525e74f82aa2ea.tar.gz
u-boot-imx-d7bc7e60310a49a680bd4a79ba525e74f82aa2ea.tar.bz2
mx6sxsabresd: 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/mx6sxsabresd')
-rw-r--r--board/freescale/mx6sxsabresd/mx6sxsabresd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c b/board/freescale/mx6sxsabresd/mx6sxsabresd.c
index 256ea29..3c33cec 100644
--- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c
+++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c
@@ -119,7 +119,6 @@ static int setup_fec(void)
{
struct iomuxc *iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR;
struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR;
- int ret;
int reg;
/* Use 125MHz anatop loopback REF_CLK1 for ENET1 */
@@ -140,11 +139,7 @@ static int setup_fec(void)
reg |= BM_ANADIG_PLL_ENET_REF_25M_ENABLE;
writel(reg, &anatop->pll_enet);
- ret = enable_fec_anatop_clock(ENET_125MHz);
- if (ret)
- return ret;
-
- return 0;
+ return enable_fec_anatop_clock(ENET_125MHz);
}
int board_eth_init(bd_t *bis)