summaryrefslogtreecommitdiff
path: root/drivers/video/amba-clcd.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2013-10-03 13:46:31 +0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-10-09 13:35:44 +0400
commitc5136a033fbbb4c452fcc7fcfe6c912cda03c762 (patch)
tree9d882133ecaab2073e6c25043012d72b2a275501 /drivers/video/amba-clcd.c
parent4d26ec5ddf93e7e133e36fd0454b54a3938f7d3c (diff)
downloadlinux-c5136a033fbbb4c452fcc7fcfe6c912cda03c762.tar.xz
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/amba-clcd.c')
-rw-r--r--drivers/video/amba-clcd.c2
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)