diff options
author | Calvin Johnson <calvin.johnson@nxp.com> | 2018-03-08 15:30:23 +0530 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2018-03-22 15:05:28 -0500 |
commit | 365108ef52db8adce703559ff050475fd459c7d5 (patch) | |
tree | 781a1a23600330c23626e343f213d1b959be30cf /drivers/net/phy/aquantia.c | |
parent | b24b1e4b1d6776ca12a57eff77956bce77b2e56f (diff) | |
download | u-boot-365108ef52db8adce703559ff050475fd459c7d5.zip u-boot-365108ef52db8adce703559ff050475fd459c7d5.tar.gz u-boot-365108ef52db8adce703559ff050475fd459c7d5.tar.bz2 |
drivers: net: phy: Fix aquantia compilation with DM
With CONFIG_DM_ETH enabled, aquantia driver compilation fails with
below error. This patch fixes the issue by including dm.h.
drivers/net/phy/aquantia.c: In function ‘aquantia_startup’:
drivers/net/phy/aquantia.c:73:21: error: dereferencing pointer to
incomplete
type ‘struct udevice’
phydev->dev->name);
^~
Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/phy/aquantia.c')
-rw-r--r-- | drivers/net/phy/aquantia.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c index ad12f6d..6678147 100644 --- a/drivers/net/phy/aquantia.c +++ b/drivers/net/phy/aquantia.c @@ -7,6 +7,7 @@ */ #include <config.h> #include <common.h> +#include <dm.h> #include <phy.h> #ifndef CONFIG_PHYLIB_10G |