diff mbox series

[U-Boot,v2,01/13] drivers: net: phy: Fix aquantia compilation with DM

Message ID 1518704240-27155-2-git-send-email-calvin.johnson@nxp.com
State Changes Requested
Delegated to: Joe Hershberger
Headers show
Series LS1012A PFE driver patch series | expand

Commit Message

Calvin Johnson Feb. 15, 2018, 2:17 p.m. UTC
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>
---
Changes in v2: None
---
 drivers/net/phy/aquantia.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Joe Hershberger Feb. 27, 2018, 4:58 p.m. UTC | #1
On Thu, Feb 15, 2018 at 8:17 AM, Calvin Johnson <calvin.johnson@nxp.com> wrote:
> 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>
diff mbox series

Patch

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