Commit aab096401c527641235cd93b188b34ed9dc99617

Authored by Hans de Goede
1 parent f9b7a04bc8

sunxi: gmac: Move sunxi_gmac_initialize proto out of netdev.h

netdev.h should not be included in driver-model enabled builds (doing so
causes compiler warnings about struct eth_driver not being declared), but
we do use sunxi_gmac_initialize in the driver-model case, so move it out of
netdev.h .

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Ian Campbell <ijc@hellion.org.uk>

Showing 2 changed files with 3 additions and 1 deletions Side-by-side Diff

arch/arm/include/asm/arch-sunxi/sys_proto.h
... ... @@ -23,5 +23,8 @@
23 23 */
24 24 void return_to_fel(uint32_t lr, uint32_t sp);
25 25  
  26 +/* Board / SoC level designware gmac init */
  27 +int sunxi_gmac_initialize(bd_t *bis);
  28 +
26 29 #endif
... ... @@ -81,7 +81,6 @@
81 81 int smc91111_initialize(u8 dev_num, int base_addr);
82 82 int smc911x_initialize(u8 dev_num, int base_addr);
83 83 int sunxi_emac_initialize(bd_t *bis);
84   -int sunxi_gmac_initialize(bd_t *bis);
85 84 int tsi108_eth_initialize(bd_t *bis);
86 85 int uec_standard_init(bd_t *bis);
87 86 int uli526x_initialize(bd_t *bis);