mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-28 07:03:31 +08:00
net: Fix warning when including netdev.h on DM systems
If the DM_ETH is enabled and netdev.h is included somewhere, the struct eth_device may not be defined, yet it is used in the header file as an argument to fecmxc_register_mii_postcall. Add forward declaration to remove the warning. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
78021b6337
commit
f2c5564f75
@ -125,6 +125,7 @@ int fec_probe(bd_t *bd, int dev_id, uint32_t base_addr,
|
||||
/*
|
||||
* Allow FEC to fine-tune MII configuration on boards which require this.
|
||||
*/
|
||||
struct eth_device;
|
||||
int fecmxc_register_mii_postcall(struct eth_device *dev, int (*cb)(int));
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user