@@ -10,6 +10,7 @@
#include <common.h>
#include <command.h>
+#include <dm.h>
#include <miiphy.h>
#include <phy.h>
@@ -10,6 +10,7 @@
#include <common.h>
#include <command.h>
+#include <dm.h>
#include <miiphy.h>
typedef struct _MII_field_desc_t {
@@ -9,6 +9,7 @@
#ifndef _DM_READ_H
#define _DM_READ_H
+#include <dm/device.h>
#include <dm/fdtaddr.h>
#include <dm/ofnode.h>
#include <dm/uclass.h>
@@ -9,13 +9,16 @@
#ifndef _PHY_H
#define _PHY_H
-#include <dm.h>
+#include <dm/ofnode.h>
+#include <dm/read.h>
#include <linux/list.h>
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/mdio.h>
#include <phy_interface.h>
+struct udevice;
+
#define PHY_FIXED_ID 0xa5a55a5a
/*
* There is no actual id for this.
@@ -7,6 +7,7 @@
#include <common.h>
#include <command.h>
+#include <dm.h>
#include <env.h>
#include <net.h>
#include <phy.h>
This header file should not be included in other header files. Remove it and use other headers and C inclusions instead. Signed-off-by: Simon Glass <sjg@chromium.org> --- cmd/mdio.c | 1 + cmd/mii.c | 1 + include/dm/read.h | 1 + include/phy.h | 5 ++++- net/eth_legacy.c | 1 + 5 files changed, 8 insertions(+), 1 deletion(-)