diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-12 06:51:57 (GMT) |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-19 10:30:06 (GMT) |
commit | d5ddbb00b85486c458854b61f6002a6c8edee0c3 (patch) | |
tree | bd0d5a3b4a5f09b1c5b68e170cf4bf0bb7436538 | |
parent | 4a70324640e100f375e55e9b502d18c610a8432d (diff) | |
download | linux-fsl-qoriq-d5ddbb00b85486c458854b61f6002a6c8edee0c3.tar.xz |
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 97db3ba..b016746 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) |