[PATCH 10/13] net drivers: remove unused type_data

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


Many net drivers set dev->type_data without ever using it, so
just remove it.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/net/altera_tse.c |    2 --
 drivers/net/cs8900.c     |    1 -
 drivers/net/dm9k.c       |    1 -
 drivers/net/ep93xx.c     |    1 -
 drivers/net/macb.c       |    1 -
 drivers/net/netx_eth.c   |    1 -
 drivers/net/smc91111.c   |    1 -
 drivers/net/smc911x.c    |    1 -
 drivers/net/tap.c        |    1 -
 9 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c
index 5163488..5353a68 100644
--- a/drivers/net/altera_tse.c
+++ b/drivers/net/altera_tse.c
@@ -507,8 +507,6 @@ static int tse_probe(struct device_d *dev)
 	priv = xzalloc(sizeof(struct altera_tse_priv));
 	miidev = xzalloc(sizeof(struct mii_device));
 
-	dev->type_data = edev;
-
 	edev->priv = priv;
 
 	edev->init = tse_init_dev;
diff --git a/drivers/net/cs8900.c b/drivers/net/cs8900.c
index 291fd0a..ef00ea6 100644
--- a/drivers/net/cs8900.c
+++ b/drivers/net/cs8900.c
@@ -448,7 +448,6 @@ static int cs8900_probe(struct device_d *dev)
 	}
 
 	edev = (struct eth_device *)xmalloc(sizeof(struct eth_device));
-	dev->type_data = edev;
 	edev->priv = priv;
 
 	edev->init = cs8900_dev_init;
diff --git a/drivers/net/dm9k.c b/drivers/net/dm9k.c
index 983edd4..0222d98 100644
--- a/drivers/net/dm9k.c
+++ b/drivers/net/dm9k.c
@@ -720,7 +720,6 @@ static int dm9k_probe(struct device_d *dev)
 	}
 
 	edev = xzalloc(sizeof(struct eth_device) + sizeof(struct dm9k));
-	dev->type_data = edev;
 	edev->priv = (struct dm9k *)(edev + 1);
 
 	pdata = dev->platform_data;
diff --git a/drivers/net/ep93xx.c b/drivers/net/ep93xx.c
index 227e317..c28fb79 100644
--- a/drivers/net/ep93xx.c
+++ b/drivers/net/ep93xx.c
@@ -484,7 +484,6 @@ static int ep93xx_eth_probe(struct device_d *dev)
 
 	edev = xzalloc(sizeof(struct eth_device) +
 		sizeof(struct ep93xx_eth_priv));
-	dev->type_data = edev;
 	edev->priv = (struct ep93xx_eth_priv *)(edev + 1);
 
 	priv = edev->priv;
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index d79da72..ab0d1af 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -409,7 +409,6 @@ static int macb_probe(struct device_d *dev)
 	pdata = dev->platform_data;
 
 	edev = xzalloc(sizeof(struct eth_device) + sizeof(struct macb_device));
-	dev->type_data = edev;
 	edev->priv = (struct macb_device *)(edev + 1);
 	macb = edev->priv;
 
diff --git a/drivers/net/netx_eth.c b/drivers/net/netx_eth.c
index 81a7ff4..345dad4 100644
--- a/drivers/net/netx_eth.c
+++ b/drivers/net/netx_eth.c
@@ -245,7 +245,6 @@ static int netx_eth_probe(struct device_d *dev)
 	pdata = dev->platform_data;
 
 	edev = xzalloc(sizeof(struct eth_device) + sizeof(struct netx_eth_priv));
-	dev->type_data = edev;
 	edev->priv = (struct netx_priv *)(edev + 1);
 
 	priv = edev->priv;
diff --git a/drivers/net/smc91111.c b/drivers/net/smc91111.c
index c51f8c7..cbd9f48 100644
--- a/drivers/net/smc91111.c
+++ b/drivers/net/smc91111.c
@@ -1297,7 +1297,6 @@ static int smc91c111_probe(struct device_d *dev)
 
 	edev = xzalloc(sizeof(struct eth_device) +
 			sizeof(struct smc91c111_priv));
-	dev->type_data = edev;
 	edev->priv = (struct smc91c111_priv *)(edev + 1);
 
 	priv = edev->priv;
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index e34c0df..800c188 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -715,7 +715,6 @@ static int smc911x_probe(struct device_d *dev)
 
 	priv = xzalloc(sizeof(*priv));
 	edev = &priv->edev;
-	dev->type_data = edev;
 	edev->priv = priv;
 
 	edev->init = smc911x_init_dev;
diff --git a/drivers/net/tap.c b/drivers/net/tap.c
index a30a9c8..32496a8 100644
--- a/drivers/net/tap.c
+++ b/drivers/net/tap.c
@@ -89,7 +89,6 @@ int tap_probe(struct device_d *dev)
 	}
 
 	edev = xmalloc(sizeof(struct eth_device));
-	dev->type_data = edev;
 	edev->priv = priv;
 
 	edev->init = tap_eth_open;
-- 
1.7.9.1




More information about the barebox mailing list