Commit 4d47011b39a8a2cd29560fee708681b20a5e9a8b

Authored by Jingoo Han
Committed by Brian Norris
1 parent cd688920c5

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>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

drivers/mtd/maps/scb2_flash.c
... ... @@ -212,7 +212,6 @@
212 212  
213 213 if (!region_fail)
214 214 release_mem_region(SCB2_ADDR, SCB2_WINDOW);
215   - pci_set_drvdata(dev, NULL);
216 215 }
217 216  
218 217 static struct pci_device_id scb2_flash_pci_ids[] = {