Searched hist:d87ad457f7e1b8d2492ca5b1531eb35030a1cc8f (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/video/fbdev/ |
H A D | pxa3xx-gcu.c | diff d87ad457f7e1b8d2492ca5b1531eb35030a1cc8f Fri May 13 05:05:41 CDT 2022 Yang Yingliang <yangyingliang@huawei.com> video: fbdev: pxa3xx-gcu: release the resources correctly in pxa3xx_gcu_probe/remove()
In pxa3xx_gcu_probe(), the sequence of error lable is wrong, it will leads some resource leaked, so adjust the sequence to handle the error correctly, and if pxa3xx_gcu_add_buffer() fails, pxa3xx_gcu_free_buffers() need be called. In pxa3xx_gcu_remove(), add missing clk_disable_unpreprare().
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Helge Deller <deller@gmx.de>
|