summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2018-01-30 16:40:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-02-05 08:23:12 +0100
commitf70bf1aeb580123d39f182cc32100c0e7042fbed (patch)
tree338630f0849fc3a00cc30687deb06bd9df56d408
parent83ff71fcee4daabfd74ff31e5612f74c4996ec5c (diff)
downloadbarebox-f70bf1aeb580123d39f182cc32100c0e7042fbed.tar.gz
net: designware: add missing headers
As the eth_device and mii_bus structs are allocated inside the dw_eth_dev struct a forward declaration isn't enough. Fixes: c1f902841ce3 (net: designware: move probe to generic driver) Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/net/designware.h3
-rw-r--r--drivers/net/designware_generic.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/designware.h b/drivers/net/designware.h
index c9dc27a..4a99fa2 100644
--- a/drivers/net/designware.h
+++ b/drivers/net/designware.h
@@ -20,8 +20,7 @@
#ifndef __DESIGNWARE_ETH_H
#define __DESIGNWARE_ETH_H
-struct eth_device;
-struct mii_bus;
+#include <net.h>
struct dw_eth_dev {
struct eth_device netdev;
diff --git a/drivers/net/designware_generic.c b/drivers/net/designware_generic.c
index 0e5b9c0..29269de 100644
--- a/drivers/net/designware_generic.c
+++ b/drivers/net/designware_generic.c
@@ -22,6 +22,7 @@
*/
#include <common.h>
+#include <init.h>
#include "designware.h"
static struct dw_eth_drvdata dwmac_370a_drvdata = {