]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sunxi: gmac: Move sunxi_gmac_initialize proto out of netdev.h
authorHans de Goede <hdegoede@redhat.com>
Wed, 22 Apr 2015 15:55:10 +0000 (17:55 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:35:20 +0000 (22:35 +0200)
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>
arch/arm/include/asm/arch-sunxi/sys_proto.h
include/netdev.h

index 60a5bd8c850d31ef0e04343e773ee86de081339f..9df37445210aebc1d7304f822fa74ad61e9b5a23 100644 (file)
@@ -23,4 +23,7 @@ void sdelay(unsigned long);
  */
 void return_to_fel(uint32_t lr, uint32_t sp);
 
+/* Board / SoC level designware gmac init */
+int sunxi_gmac_initialize(bd_t *bis);
+
 #endif
index 94eedb86e9fa41f22f9e48b0a6999494f1ca39bd..cd6e5ed66592323701cbeefa9db3ce9574c7956e 100644 (file)
@@ -81,7 +81,6 @@ int skge_initialize(bd_t *bis);
 int smc91111_initialize(u8 dev_num, int base_addr);
 int smc911x_initialize(u8 dev_num, int base_addr);
 int sunxi_emac_initialize(bd_t *bis);
-int sunxi_gmac_initialize(bd_t *bis);
 int tsi108_eth_initialize(bd_t *bis);
 int uec_standard_init(bd_t *bis);
 int uli526x_initialize(bd_t *bis);