summaryrefslogtreecommitdiffstats
path: root/drivers/net/fec_mpc5200.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-09-23 20:34:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-23 20:35:20 +0200
commit26eab97b41da45353300d447870fe1c7fbfe7542 (patch)
tree56fad31be0c7514e40491526980b2153cbf0548d /drivers/net/fec_mpc5200.c
parent13e657f712d80d83ade138fc3d6785d378554b12 (diff)
downloadbarebox-26eab97b41da45353300d447870fe1c7fbfe7542.tar.gz
barebox-26eab97b41da45353300d447870fe1c7fbfe7542.tar.xz
net fec_mpc5200: Use same platform_data as i.MX fec driver
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/fec_mpc5200.c')
-rw-r--r--drivers/net/fec_mpc5200.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/fec_mpc5200.c b/drivers/net/fec_mpc5200.c
index c3f2099b0f..6c2da3ebab 100644
--- a/drivers/net/fec_mpc5200.c
+++ b/drivers/net/fec_mpc5200.c
@@ -10,11 +10,11 @@
#include <mach/mpc5xxx.h>
#include <malloc.h>
#include <net.h>
+#include <fec.h>
#include <init.h>
#include <miidev.h>
#include <driver.h>
#include <mach/sdma.h>
-#include <mach/fec.h>
#include <mach/clocks.h>
#include <miidev.h>
#include "fec_mpc5200.h"
@@ -657,7 +657,7 @@ static int mpc5xxx_fec_recv(struct eth_device *dev)
int mpc5xxx_fec_probe(struct device_d *dev)
{
- struct mpc5xxx_fec_platform_data *pdata = (struct mpc5xxx_fec_platform_data *)dev->platform_data;
+ struct fec_platform_data *pdata = dev->platform_data;
struct eth_device *edev;
mpc5xxx_fec_priv *fec;