diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-23 03:31:30 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2013-11-07 08:32:44 +0100 |
commit | 4d47011b39a8a2cd29560fee708681b20a5e9a8b (patch) | |
tree | 1ce22a6abfc3e35fa72a24e216b055fcee2f1664 /drivers/mtd/maps | |
parent | mtd: pci: remove unnecessary pci_set_drvdata() (diff) | |
download | linux-4d47011b39a8a2cd29560fee708681b20a5e9a8b.tar.xz linux-4d47011b39a8a2cd29560fee708681b20a5e9a8b.zip |
mtd: scb2_flash: 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: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r-- | drivers/mtd/maps/scb2_flash.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/maps/scb2_flash.c b/drivers/mtd/maps/scb2_flash.c index c77b68c9412f..3051c4c36240 100644 --- a/drivers/mtd/maps/scb2_flash.c +++ b/drivers/mtd/maps/scb2_flash.c @@ -212,7 +212,6 @@ static void scb2_flash_remove(struct pci_dev *dev) if (!region_fail) release_mem_region(SCB2_ADDR, SCB2_WINDOW); - pci_set_drvdata(dev, NULL); } static struct pci_device_id scb2_flash_pci_ids[] = { |