aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Johnson2018-03-08 15:30:23 +0530
committerJoe Hershberger2018-03-22 15:05:28 -0500
commit365108ef52db8adce703559ff050475fd459c7d5 (patch)
tree781a1a23600330c23626e343f213d1b959be30cf
parentb24b1e4b1d6776ca12a57eff77956bce77b2e56f (diff)
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>
-rw-r--r--drivers/net/phy/aquantia.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c
index ad12f6d61fb..66781475456 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