rk fb:stop vsync thread when rk fb shut down

This commit is contained in:
yxj
2013-02-01 17:52:27 +08:00
parent c804b76b12
commit 0fa2fd8d71

View File

@@ -1352,7 +1352,16 @@ static int __devexit rk_fb_remove(struct platform_device *pdev)
static void rk_fb_shutdown(struct platform_device *pdev)
{
// struct rk_fb_inf *fb_inf = platform_get_drvdata(pdev);
struct rk_fb_inf *inf = platform_get_drvdata(pdev);
int i;
for(i = 0; i < inf->num_lcdc; i++)
{
if (!inf->lcdc_dev_drv[i])
continue;
if(inf->lcdc_dev_drv[i]->vsync_info.thread)
kthread_stop(inf->lcdc_dev_drv[i]->vsync_info.thread);
}
// kfree(fb_inf);
// platform_set_drvdata(pdev, NULL);
#ifdef CONFIG_HAS_EARLYSUSPEND