diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-15 13:34:05 -0400 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-07-18 20:05:22 -0400 |
commit | 0c75c4e073a8ec35bfd6c8adcceb2b896f2063e2 (patch) | |
tree | 662e23649ac19a7e87c1befd04a57720febe791c /drivers/video/sh_mobile_lcdcfb.c | |
parent | 239921ec1d969e904676f444a92e6d68a928d98c (diff) |
fbdev: sh_mobile_lcdc: Destroy mutex at remove time
Add a missing mutex_destroy() call when the driver is unbound from the
device.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/video/sh_mobile_lcdcfb.c')
-rw-r--r-- | drivers/video/sh_mobile_lcdcfb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index 9da4b1b619e6..644c2309a49a 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c | |||
@@ -2444,8 +2444,11 @@ static int sh_mobile_lcdc_remove(struct platform_device *pdev) | |||
2444 | } | 2444 | } |
2445 | 2445 | ||
2446 | for (i = 0; i < ARRAY_SIZE(priv->ch); i++) { | 2446 | for (i = 0; i < ARRAY_SIZE(priv->ch); i++) { |
2447 | if (priv->ch[i].bl) | 2447 | struct sh_mobile_lcdc_chan *ch = &priv->ch[i]; |
2448 | sh_mobile_lcdc_bl_remove(priv->ch[i].bl); | 2448 | |
2449 | if (ch->bl) | ||
2450 | sh_mobile_lcdc_bl_remove(ch->bl); | ||
2451 | mutex_destroy(&ch->open_lock); | ||
2449 | } | 2452 | } |
2450 | 2453 | ||
2451 | if (priv->dot_clk) { | 2454 | if (priv->dot_clk) { |