diff options
author | Claudiu Manoil <claudiu.manoil@freescale.com> | 2013-02-14 00:00:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-14 13:32:24 -0500 |
commit | 41a2060976ca879a68108ffb181dc429d556adce (patch) | |
tree | 3029e92fea5ee296b4a20e9b15def78352f7acdb /drivers/net/ethernet/freescale | |
parent | e0376d004307e2b882afcf9e73b2ed5b66d57aee (diff) |
gianfar: Remove unused device_node ref in gfar_private
Remove unused device node pointer.
Remove duplicated SET_NETDEV_DEV().
Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.h | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c index c82f67727f43..2c6b5694b3f0 100644 --- a/drivers/net/ethernet/freescale/gianfar.c +++ b/drivers/net/ethernet/freescale/gianfar.c | |||
@@ -663,7 +663,6 @@ static int gfar_of_init(struct platform_device *ofdev, struct net_device **pdev) | |||
663 | return -ENOMEM; | 663 | return -ENOMEM; |
664 | 664 | ||
665 | priv = netdev_priv(dev); | 665 | priv = netdev_priv(dev); |
666 | priv->node = ofdev->dev.of_node; | ||
667 | priv->ndev = dev; | 666 | priv->ndev = dev; |
668 | 667 | ||
669 | priv->num_tx_queues = num_tx_qs; | 668 | priv->num_tx_queues = num_tx_qs; |
@@ -1001,7 +1000,6 @@ static int gfar_probe(struct platform_device *ofdev) | |||
1001 | priv = netdev_priv(dev); | 1000 | priv = netdev_priv(dev); |
1002 | priv->ndev = dev; | 1001 | priv->ndev = dev; |
1003 | priv->ofdev = ofdev; | 1002 | priv->ofdev = ofdev; |
1004 | priv->node = ofdev->dev.of_node; | ||
1005 | SET_NETDEV_DEV(dev, &ofdev->dev); | 1003 | SET_NETDEV_DEV(dev, &ofdev->dev); |
1006 | 1004 | ||
1007 | spin_lock_init(&priv->bflock); | 1005 | spin_lock_init(&priv->bflock); |
@@ -1038,8 +1036,6 @@ static int gfar_probe(struct platform_device *ofdev) | |||
1038 | /* Set the dev->base_addr to the gfar reg region */ | 1036 | /* Set the dev->base_addr to the gfar reg region */ |
1039 | dev->base_addr = (unsigned long) regs; | 1037 | dev->base_addr = (unsigned long) regs; |
1040 | 1038 | ||
1041 | SET_NETDEV_DEV(dev, &ofdev->dev); | ||
1042 | |||
1043 | /* Fill in the dev structure */ | 1039 | /* Fill in the dev structure */ |
1044 | dev->watchdog_timeo = TX_TIMEOUT; | 1040 | dev->watchdog_timeo = TX_TIMEOUT; |
1045 | dev->mtu = 1500; | 1041 | dev->mtu = 1500; |
diff --git a/drivers/net/ethernet/freescale/gianfar.h b/drivers/net/ethernet/freescale/gianfar.h index 78125f1f870e..8b4de57a5c23 100644 --- a/drivers/net/ethernet/freescale/gianfar.h +++ b/drivers/net/ethernet/freescale/gianfar.h | |||
@@ -1060,7 +1060,6 @@ struct gfar_private { | |||
1060 | unsigned int total_tx_ring_size; | 1060 | unsigned int total_tx_ring_size; |
1061 | unsigned int total_rx_ring_size; | 1061 | unsigned int total_rx_ring_size; |
1062 | 1062 | ||
1063 | struct device_node *node; | ||
1064 | struct net_device *ndev; | 1063 | struct net_device *ndev; |
1065 | struct platform_device *ofdev; | 1064 | struct platform_device *ofdev; |
1066 | enum gfar_errata errata; | 1065 | enum gfar_errata errata; |