mtd: scb2_flash: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Mon, 23 Sep 2013 01:31:30 +0000 (10:31 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:32:44 +0000 (23:32 -0800)
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>
drivers/mtd/maps/scb2_flash.c

index c77b68c9412f8631955f6b52df633a6ab3fbce07..3051c4c362404bab5119dcf00d8c1e7321e4dbf3 100644 (file)
@@ -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[] = {