diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-10-03 11:46:31 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-10-09 11:35:44 +0200 |
commit | c5136a033fbbb4c452fcc7fcfe6c912cda03c762 (patch) | |
tree | 9d882133ecaab2073e6c25043012d72b2a275501 /drivers/video | |
parent | fbdev: sh_mobile_hdmi: Use devm_kzalloc() (diff) | |
download | linux-c5136a033fbbb4c452fcc7fcfe6c912cda03c762.tar.xz linux-c5136a033fbbb4c452fcc7fcfe6c912cda03c762.zip |
video: amba-clcd: Remove unnecessary amba_set_drvdata()
Driver core clears the driver data to NULL after device_release
or on probe failure, so just remove it from here.
Driver core change:
"device-core: Ensure drvdata = NULL when no driver is bound"
(sha1: 0998d0631001288a5974afc0b2a5f568bcdecb4d)
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/amba-clcd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c index b7aa68b3eeff..0f6c61491f74 100644 --- a/drivers/video/amba-clcd.c +++ b/drivers/video/amba-clcd.c @@ -594,8 +594,6 @@ static int clcdfb_remove(struct amba_device *dev) { struct clcd_fb *fb = amba_get_drvdata(dev); - amba_set_drvdata(dev, NULL); - clcdfb_disable(fb); unregister_framebuffer(&fb->fb); if (fb->fb.cmap.len) |