mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-26 09:01:35 +00:00
Declared attributes of void __mii_init(void) as an alias for int mii_init(void)
Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
This commit is contained in:
parent
9998bd37ea
commit
9e737d8476
3 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||||
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);
|
||||||
#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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue