mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-18 22:34:48 +00:00
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>
This commit is contained in:
parent
239921ec1d
commit
0c75c4e073
@ -2444,8 +2444,11 @@ static int sh_mobile_lcdc_remove(struct platform_device *pdev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(priv->ch); i++) {
|
for (i = 0; i < ARRAY_SIZE(priv->ch); i++) {
|
||||||
if (priv->ch[i].bl)
|
struct sh_mobile_lcdc_chan *ch = &priv->ch[i];
|
||||||
sh_mobile_lcdc_bl_remove(priv->ch[i].bl);
|
|
||||||
|
if (ch->bl)
|
||||||
|
sh_mobile_lcdc_bl_remove(ch->bl);
|
||||||
|
mutex_destroy(&ch->open_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (priv->dot_clk) {
|
if (priv->dot_clk) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user