Browse Source

net: ucc_geth: remove unnecessary dev_set_drvdata()

Unnecessary dev_set_drvdata() is removed, because the driver core
clears the driver data to NULL after device_release or on probe failure.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Libo Chen 12 years ago
parent
commit
01007f5cfb
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/net/ethernet/freescale/ucc_geth.c

+ 0 - 1
drivers/net/ethernet/freescale/ucc_geth.c

@@ -3917,7 +3917,6 @@ static int ucc_geth_remove(struct platform_device* ofdev)
 	unregister_netdev(dev);
 	free_netdev(dev);
 	ucc_geth_memclean(ugeth);
-	dev_set_drvdata(device, NULL);
 
 	return 0;
 }