Skip to content
Snippets Groups Projects
Commit 9e737d84 authored by TsiChung Liew's avatar TsiChung Liew Committed by Stefan Roese
Browse files

Declared attributes of void __mii_init(void) as an alias for int mii_init(void)

parent 9998bd37
No related branches found
No related tags found
No related merge requests found
...@@ -203,7 +203,9 @@ int mii_discover_phy(struct eth_device *dev) ...@@ -203,7 +203,9 @@ int mii_discover_phy(struct eth_device *dev)
} }
#endif /* CFG_DISCOVER_PHY */ #endif /* CFG_DISCOVER_PHY */
void mii_init(void) int mii_init(void) __attribute__((weak,alias("__mii_init")));
void __mii_init(void)
{ {
volatile fec_t *fecp; volatile fec_t *fecp;
struct fec_info_s *info; struct fec_info_s *info;
......
...@@ -101,7 +101,7 @@ void fec_reset(struct eth_device *dev); ...@@ -101,7 +101,7 @@ void fec_reset(struct eth_device *dev);
extern int fecpin_setclear(struct eth_device *dev, int setclear); extern int fecpin_setclear(struct eth_device *dev, int setclear);
#ifdef CFG_DISCOVER_PHY #ifdef CFG_DISCOVER_PHY
extern void mii_init(void); extern void __mii_init(void);
extern uint mii_send(uint mii_cmd); extern uint mii_send(uint mii_cmd);
extern int mii_discover_phy(struct eth_device *dev); extern int mii_discover_phy(struct eth_device *dev);
extern int mcffec_miiphy_read(char *devname, unsigned char addr, extern int mcffec_miiphy_read(char *devname, unsigned char addr,
......
...@@ -539,7 +539,7 @@ ulong bootcount_load (void); ...@@ -539,7 +539,7 @@ ulong bootcount_load (void);
#define BOOTCOUNT_MAGIC 0xB001C041 #define BOOTCOUNT_MAGIC 0xB001C041
/* $(CPU)/.../<eth> */ /* $(CPU)/.../<eth> */
void mii_init (void); /*void mii_init (void);*/
/* $(CPU)/.../lcd.c */ /* $(CPU)/.../lcd.c */
ulong lcd_setmem (ulong); ulong lcd_setmem (ulong);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment