static int __devexit mipi_nt35565_lcd_remove(struct platform_device *pdev) { struct mipi_dsi_data *dsi_data; dsi_data = platform_get_drvdata(pdev); if (!dsi_data) return -ENODEV; #ifdef CONFIG_DEBUG_FS mipi_dsi_panel_remove_debugfs(pdev); #endif platform_set_drvdata(pdev, NULL); mipi_dsi_buf_release(&dsi_data->tx_buf); mipi_dsi_buf_release(&dsi_data->rx_buf); kfree(dsi_data); return 0; }
static int __devexit mipi_r63306_lcd_remove(struct platform_device *pdev) { struct mipi_dsi_data *dsi_data; dsi_data = platform_get_drvdata(pdev); if (!dsi_data) return -ENODEV; #ifdef CONFIG_DEBUG_FS mipi_dsi_panel_remove_debugfs(pdev); #endif #ifdef CONFIG_FB_MSM_RECOVER_PANEL remove_sysfs_interfaces(&pdev->dev); #endif platform_set_drvdata(pdev, NULL); mipi_dsi_buf_release(&dsi_data->tx_buf); mipi_dsi_buf_release(&dsi_data->rx_buf); kfree(dsi_data); return 0; }
static int __devexit mipi_s6d6aa0_lcd_remove(struct platform_device *pdev) { struct mipi_dsi_data *dsi_data; dsi_data = platform_get_drvdata(pdev); if (!dsi_data) return -ENODEV; if (dsi_data->panel->esd_failed_check) destroy_workqueue(dsi_data->esd_wq); #ifdef CONFIG_DEBUG_FS mipi_dsi_panel_remove_debugfs(pdev); #endif platform_set_drvdata(pdev, NULL); mipi_dsi_buf_release(&dsi_data->tx_buf); mipi_dsi_buf_release(&dsi_data->rx_buf); kfree(dsi_data); return 0; }