[PATCH 3/4] mtd: scb2_flash: remove unnecessary pci_set_drvdata()
Jingoo Han
jg1.han at samsung.com
Sun Sep 22 21:31:30 EDT 2013
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 at samsung.com>
---
drivers/mtd/maps/scb2_flash.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mtd/maps/scb2_flash.c b/drivers/mtd/maps/scb2_flash.c
index c77b68c..3051c4c 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[] = {
--
1.7.10.4
More information about the linux-mtd
mailing list