Skip to content
Snippets Groups Projects
Commit 365108ef authored by Calvin Johnson's avatar Calvin Johnson Committed by Joe Hershberger
Browse files

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: default avatarCalvin Johnson <calvin.johnson@nxp.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent b24b1e4b
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
*/
#include <config.h>
#include <common.h>
#include <dm.h>
#include <phy.h>
#ifndef CONFIG_PHYLIB_10G
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment