diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-12 15:43:07 +0900 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-10-23 16:20:54 +0100 |
commit | 928dfb2c750da3e1db181742198da4d9026012b0 (patch) | |
tree | 29cec40033f179e2963557cd54aa3dc71b0d60d2 /drivers/mfd/sm501.c | |
parent | 1fcd5d815e12eafa7304f1dd39900eaa332085eb (diff) | |
download | linux-928dfb2c750da3e1db181742198da4d9026012b0.tar.gz linux-928dfb2c750da3e1db181742198da4d9026012b0.tar.bz2 linux-928dfb2c750da3e1db181742198da4d9026012b0.zip |
mfd: sm501: 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: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/sm501.c')
-rw-r--r-- | drivers/mfd/sm501.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c index 3799a3d64415..c2c8c91c6c7b 100644 --- a/drivers/mfd/sm501.c +++ b/drivers/mfd/sm501.c @@ -1660,7 +1660,6 @@ static int sm501_pci_probe(struct pci_dev *dev, err3: pci_disable_device(dev); err2: - pci_set_drvdata(dev, NULL); kfree(sm); err1: return err; @@ -1695,7 +1694,6 @@ static void sm501_pci_remove(struct pci_dev *dev) release_resource(sm->regs_claim); kfree(sm->regs_claim); - pci_set_drvdata(dev, NULL); pci_disable_device(dev); } |