diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-21 04:14:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-21 23:21:02 +0200 |
commit | c95984083a656fb82b9e1500748fd0b3f2d1d28c (patch) | |
tree | 35286f9f08d7efbdf4be93299000ccab836655a2 /drivers/net/ethernet | |
parent | net: sky2: remove unnecessary pci_set_drvdata() (diff) | |
download | linux-c95984083a656fb82b9e1500748fd0b3f2d1d28c.tar.xz linux-c95984083a656fb82b9e1500748fd0b3f2d1d28c.zip |
net: ksz884x: remove unnecessary pci_set_drvdata()
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/micrel/ksz884x.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c index 8ebc352bcbe6..6462dc5191ef 100644 --- a/drivers/net/ethernet/micrel/ksz884x.c +++ b/drivers/net/ethernet/micrel/ksz884x.c @@ -7150,8 +7150,6 @@ static void pcidev_exit(struct pci_dev *pdev) struct platform_info *info = pci_get_drvdata(pdev); struct dev_info *hw_priv = &info->dev_info; - pci_set_drvdata(pdev, NULL); - release_mem_region(pci_resource_start(pdev, 0), pci_resource_len(pdev, 0)); for (i = 0; i < hw_priv->hw.dev_count; i++) { |