From: Calvin Johnson Date: Thu, 8 Mar 2018 10:00:23 +0000 (+0530) Subject: drivers: net: phy: Fix aquantia compilation with DM X-Git-Tag: v2025.01-rc5-pxa1908~4629^2~20 X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%24image.RelPermalink%20%7D%7D?a=commitdiff_plain;h=365108ef52db8adce703559ff050475fd459c7d5;p=u-boot.git 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 Acked-by: Joe Hershberger --- 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 #include +#include #include #ifndef CONFIG_PHYLIB_10G