lcdc_dev->driver.screen_ctr_info->io_disable();
if(lcdc_dev->driver.cur_screen->sscreen_set) //turn off lvds
lcdc_dev->driver.cur_screen->sscreen_set(lcdc_dev->driver.cur_screen , 0);
- rk_fb_unregister(&(lcdc_dev->driver));
+ //rk_fb_unregister(&(lcdc_dev->driver));
rk2928_lcdc_deinit(lcdc_dev);
/*iounmap(lcdc_dev->reg_vir_base);
release_mem_region(lcdc_dev->reg_phy_base,lcdc_dev->len);
lcdc_dev->driver.cur_screen->sscreen_set(lcdc_dev->driver.cur_screen , 0);
rk3066b_lcdc_deinit(lcdc_dev);
- rk_fb_unregister(&(lcdc_dev->driver));
+ //rk_fb_unregister(&(lcdc_dev->driver));
/*iounmap(lcdc_dev->reg_vir_base);
release_mem_region(lcdc_dev->reg_phy_base,lcdc_dev->len);
if(lcdc_dev->driver.cur_screen->sscreen_set) //turn off lvds if necessary
lcdc_dev->driver.cur_screen->sscreen_set(lcdc_dev->driver.cur_screen , 0);
rk30_lcdc_deinit(lcdc_dev);
- rk_fb_unregister(&(lcdc_dev->driver));
+ //rk_fb_unregister(&(lcdc_dev->driver));
/*iounmap(lcdc_dev->reg_vir_base);
release_mem_region(lcdc_dev->reg_phy_base,lcdc_dev->len);
static int __devexit rk3188_lcdc_remove(struct platform_device *pdev)
{
+ struct rk3188_lcdc_device *lcdc_dev = platform_get_drvdata(pdev);
+ rk3188_lcdc_deint(lcdc_dev);
+ rk_fb_unregister(&(lcdc_dev->driver));
+
return 0;
}
if(lcdc_dev->driver.screen_ctr_info->io_disable) //power off the screen if necessary
lcdc_dev->driver.screen_ctr_info->io_disable();
rk3188_lcdc_deint(lcdc_dev);
- rk_fb_unregister(&(lcdc_dev->driver));
+ //rk_fb_unregister(&(lcdc_dev->driver));
}
static struct platform_driver rk3188_lcdc_driver = {
.probe = rk3188_lcdc_probe,