From: Calvin Johnson Date: Sat, 3 Mar 2018 23:13:31 +0530 Subject: [U-Boot] [PATCH v3 01/13] drivers: net: phy: Fix aquantia compilation with DM In-Reply-To: <1520099023-29210-1-git-send-email-calvin.johnson@nxp.com> References: <1520099023-29210-1-git-send-email-calvin.johnson@nxp.com> Message-ID: <1520099023-29210-2-git-send-email-calvin.johnson@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de 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 Acked-by: Joe Hershberger --- Changes in v3: None Changes in v2: None 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 ad12f6d..6678147 100644 --- a/drivers/net/phy/aquantia.c +++ b/drivers/net/phy/aquantia.c @@ -7,6 +7,7 @@ */ #include #include +#include #include #ifndef CONFIG_PHYLIB_10G -- 2.7.4