From 365108ef52db8adce703559ff050475fd459c7d5 Mon Sep 17 00:00:00 2001 From: Calvin Johnson <calvin.johnson@nxp.com> Date: Thu, 8 Mar 2018 15:30:23 +0530 Subject: [PATCH] drivers: net: phy: Fix aquantia compilation with DM MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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> --- drivers/net/phy/aquantia.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c index ad12f6d61f..6678147545 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 -- 2.39.5