mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-24 09:59:59 +07:00
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>
This commit is contained in:
parent
e0376d0043
commit
41a2060976
@ -663,7 +663,6 @@ static int gfar_of_init(struct platform_device *ofdev, struct net_device **pdev)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
priv = netdev_priv(dev);
|
priv = netdev_priv(dev);
|
||||||
priv->node = ofdev->dev.of_node;
|
|
||||||
priv->ndev = dev;
|
priv->ndev = dev;
|
||||||
|
|
||||||
priv->num_tx_queues = num_tx_qs;
|
priv->num_tx_queues = num_tx_qs;
|
||||||
@ -1001,7 +1000,6 @@ static int gfar_probe(struct platform_device *ofdev)
|
|||||||
priv = netdev_priv(dev);
|
priv = netdev_priv(dev);
|
||||||
priv->ndev = dev;
|
priv->ndev = dev;
|
||||||
priv->ofdev = ofdev;
|
priv->ofdev = ofdev;
|
||||||
priv->node = ofdev->dev.of_node;
|
|
||||||
SET_NETDEV_DEV(dev, &ofdev->dev);
|
SET_NETDEV_DEV(dev, &ofdev->dev);
|
||||||
|
|
||||||
spin_lock_init(&priv->bflock);
|
spin_lock_init(&priv->bflock);
|
||||||
@ -1038,8 +1036,6 @@ static int gfar_probe(struct platform_device *ofdev)
|
|||||||
/* Set the dev->base_addr to the gfar reg region */
|
/* Set the dev->base_addr to the gfar reg region */
|
||||||
dev->base_addr = (unsigned long) regs;
|
dev->base_addr = (unsigned long) regs;
|
||||||
|
|
||||||
SET_NETDEV_DEV(dev, &ofdev->dev);
|
|
||||||
|
|
||||||
/* Fill in the dev structure */
|
/* Fill in the dev structure */
|
||||||
dev->watchdog_timeo = TX_TIMEOUT;
|
dev->watchdog_timeo = TX_TIMEOUT;
|
||||||
dev->mtu = 1500;
|
dev->mtu = 1500;
|
||||||
|
@ -1060,7 +1060,6 @@ struct gfar_private {
|
|||||||
unsigned int total_tx_ring_size;
|
unsigned int total_tx_ring_size;
|
||||||
unsigned int total_rx_ring_size;
|
unsigned int total_rx_ring_size;
|
||||||
|
|
||||||
struct device_node *node;
|
|
||||||
struct net_device *ndev;
|
struct net_device *ndev;
|
||||||
struct platform_device *ofdev;
|
struct platform_device *ofdev;
|
||||||
enum gfar_errata errata;
|
enum gfar_errata errata;
|
||||||
|
Loading…
Reference in New Issue
Block a user