diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-23 03:37:24 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 18:13:54 +0200 |
commit | b9be2c60fce7a93723403488a2f5d508ff7d3d2f (patch) | |
tree | 68039721b898d8b3f2583613083450cb6aea6740 /drivers/misc/mei | |
parent | misc: ibmasm: remove unnecessary pci_set_drvdata() (diff) | |
download | linux-b9be2c60fce7a93723403488a2f5d508ff7d3d2f.tar.xz linux-b9be2c60fce7a93723403488a2f5d508ff7d3d2f.zip |
misc: mei: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei')
-rw-r--r-- | drivers/misc/mei/pci-me.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/misc/mei/pci-me.c b/drivers/misc/mei/pci-me.c index 1b3844e82379..1b8a4c6d0cf8 100644 --- a/drivers/misc/mei/pci-me.c +++ b/drivers/misc/mei/pci-me.c @@ -239,7 +239,6 @@ static void mei_me_remove(struct pci_dev *pdev) free_irq(pdev->irq, dev); pci_disable_msi(pdev); - pci_set_drvdata(pdev, NULL); if (hw->mem_addr) pci_iounmap(pdev, hw->mem_addr); |