diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-01-04 17:36:31 -0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-01-13 11:52:27 +0100 |
commit | 579be2f76033a1202e92d2876aca18dbd1230221 (patch) | |
tree | e5dba39490bc39bdf0be4943f4a790922a32729a /board/freescale/mx6qsabreauto | |
parent | 1037dc0a2bccfd615be37e52d3322ac622d25b59 (diff) | |
download | u-boot-imx-579be2f76033a1202e92d2876aca18dbd1230221.zip u-boot-imx-579be2f76033a1202e92d2876aca18dbd1230221.tar.gz u-boot-imx-579be2f76033a1202e92d2876aca18dbd1230221.tar.bz2 |
mx6qsabreauto: Return from cpu_eth_init() directly
There is no need to print an error message when cpu_eth_init() fails because
net/eth.c already prints it.
In order to simplify the code, just return the value from cpu_eth_init(bis)
directly.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'board/freescale/mx6qsabreauto')
-rw-r--r-- | board/freescale/mx6qsabreauto/mx6qsabreauto.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/board/freescale/mx6qsabreauto/mx6qsabreauto.c b/board/freescale/mx6qsabreauto/mx6qsabreauto.c index fc75eae..928dadf 100644 --- a/board/freescale/mx6qsabreauto/mx6qsabreauto.c +++ b/board/freescale/mx6qsabreauto/mx6qsabreauto.c @@ -192,15 +192,9 @@ int board_phy_config(struct phy_device *phydev) int board_eth_init(bd_t *bis) { - int ret; - setup_iomux_enet(); - ret = cpu_eth_init(bis); - if (ret) - printf("FEC MXC: %s:failed\n", __func__); - - return ret; + return cpu_eth_init(bis); } #define BOARD_REV_B 0x200 |