diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-12 08:51:57 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-19 12:30:06 +0200 |
commit | d5ddbb00b85486c458854b61f6002a6c8edee0c3 (patch) | |
tree | bd0d5a3b4a5f09b1c5b68e170cf4bf0bb7436538 | |
parent | video: carminefb: remove unnecessary pci_set_drvdata() (diff) | |
download | linux-d5ddbb00b85486c458854b61f6002a6c8edee0c3.tar.xz linux-d5ddbb00b85486c458854b61f6002a6c8edee0c3.zip |
video: cirrusfb: 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: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/cirrusfb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c index 97db3ba8f237..b0167468f5c4 100644 --- a/drivers/video/cirrusfb.c +++ b/drivers/video/cirrusfb.c @@ -2159,7 +2159,6 @@ static int cirrusfb_pci_register(struct pci_dev *pdev, if (!ret) return 0; - pci_set_drvdata(pdev, NULL); iounmap(info->screen_base); err_release_legacy: if (release_io_ports) |