[PATCH 11/13] net fec_imx: drop type_data usage

Sascha Hauer s.hauer at pengutronix.de
Sat Feb 25 10:51:08 EST 2012


Store the private data pointer in dev->priv as it's intended.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/net/fec_imx.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index 653b488..08cd761 100644
--- a/drivers/net/fec_imx.c
+++ b/drivers/net/fec_imx.c
@@ -603,7 +603,7 @@ static int fec_probe(struct device_d *dev)
 #endif
 	fec = xzalloc(sizeof(*fec));
 	edev = &fec->edev;
-	dev->type_data = edev;
+	dev->priv = fec;
 	edev->priv = fec;
 	edev->open = fec_open;
 	edev->init = fec_init;
@@ -656,9 +656,9 @@ static int fec_probe(struct device_d *dev)
 
 static void fec_remove(struct device_d *dev)
 {
-	struct eth_device *edev = dev->type_data;
+	struct fec_priv *fec = dev->priv;
 
-	fec_halt(edev);
+	fec_halt(&fec->edev);
 }
 
 /**
-- 
1.7.9.1




More information about the barebox mailing list