diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-10-03 13:46:31 +0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-10-09 13:35:44 +0400 |
commit | c5136a033fbbb4c452fcc7fcfe6c912cda03c762 (patch) | |
tree | 9d882133ecaab2073e6c25043012d72b2a275501 /drivers/video/amba-clcd.c | |
parent | 4d26ec5ddf93e7e133e36fd0454b54a3938f7d3c (diff) | |
download | linux-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.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) |