Commit d47aa453 authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman

usb: gadget: Remove redundant pci_set_drvdata

Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b8586265
...@@ -3078,8 +3078,6 @@ static void udc_pci_remove(struct pci_dev *pdev) ...@@ -3078,8 +3078,6 @@ static void udc_pci_remove(struct pci_dev *pdev)
if (dev->active) if (dev->active)
pci_disable_device(pdev); pci_disable_device(pdev);
pci_set_drvdata(pdev, NULL);
udc_remove(dev); udc_remove(dev);
} }
......
...@@ -1701,7 +1701,6 @@ static void goku_remove(struct pci_dev *pdev) ...@@ -1701,7 +1701,6 @@ static void goku_remove(struct pci_dev *pdev)
if (dev->enabled) if (dev->enabled)
pci_disable_device(pdev); pci_disable_device(pdev);
pci_set_drvdata(pdev, NULL);
dev->regs = NULL; dev->regs = NULL;
INFO(dev, "unbind\n"); INFO(dev, "unbind\n");
......
...@@ -2680,7 +2680,6 @@ static void net2280_remove (struct pci_dev *pdev) ...@@ -2680,7 +2680,6 @@ static void net2280_remove (struct pci_dev *pdev)
if (dev->enabled) if (dev->enabled)
pci_disable_device (pdev); pci_disable_device (pdev);
device_remove_file (&pdev->dev, &dev_attr_registers); device_remove_file (&pdev->dev, &dev_attr_registers);
pci_set_drvdata (pdev, NULL);
INFO (dev, "unbind\n"); INFO (dev, "unbind\n");
} }
......
...@@ -3080,7 +3080,6 @@ static void pch_udc_remove(struct pci_dev *pdev) ...@@ -3080,7 +3080,6 @@ static void pch_udc_remove(struct pci_dev *pdev)
if (dev->active) if (dev->active)
pci_disable_device(pdev); pci_disable_device(pdev);
kfree(dev); kfree(dev);
pci_set_drvdata(pdev, NULL);
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment