summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/sunxi
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-04-23 18:47:47 +0200
committerHans de Goede <hdegoede@redhat.com>2015-05-04 16:51:54 +0200
commitd17e1577a203e486d8a15bfa015a6410d99079de (patch)
tree16f2f45811d35e744cd748d87b57f9da9d617192 /arch/arm/cpu/armv7/sunxi
parentb6006baf9c2553543e3384983d23d95efbf24fa6 (diff)
sunxi: emac: Remove non driver-model code
All sunxi boards now use the driver-model, so remove the non driver-model code. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'arch/arm/cpu/armv7/sunxi')
-rw-r--r--arch/arm/cpu/armv7/sunxi/board.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c
index 732e5c83ed..6718ae2205 100644
--- a/arch/arm/cpu/armv7/sunxi/board.c
+++ b/arch/arm/cpu/armv7/sunxi/board.c
@@ -12,10 +12,6 @@
#include <common.h>
#include <i2c.h>
-#ifndef CONFIG_DM_ETH
-#include <netdev.h>
-#endif
-#include <miiphy.h>
#include <serial.h>
#ifdef CONFIG_SPL_BUILD
#include <spl.h>
@@ -221,14 +217,6 @@ int cpu_eth_init(bd_t *bis)
mdelay(200);
#endif
-#if defined CONFIG_SUNXI_EMAC && !defined CONFIG_DM_ETH
- rc = sunxi_emac_initialize(bis);
- if (rc < 0) {
- printf("sunxi: failed to initialize emac\n");
- return rc;
- }
-#endif
-
#ifdef CONFIG_SUNXI_GMAC
rc = sunxi_gmac_initialize(bis);
if (rc < 0) {