aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/sh_mobile_lcdcfb.c7
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) {