static void tianma_497_v0_remove(struct mipi_dsi_device *dsi) { struct tianma_497_v0 *ctx = mipi_dsi_get_drvdata(dsi); int ret; ret = mipi_dsi_detach(dsi); if (ret < 0) dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); drm_panel_remove(&ctx->panel); } static const struct of_device_id tianma_497_v0_of_match[] = { { .compatible = "motorola,cedric-nt35596-tianma" }, // FIXME { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, tianma_497_v0_of_match); static struct mipi_dsi_driver tianma_497_v0_driver = { .probe = tianma_497_v0_probe, .remove = tianma_497_v0_remove, .driver = { .name = "panel-motorola-cedric-497-tianma", .of_match_table = tianma_497_v0_of_match, }, }; module_mipi_dsi_driver(tianma_497_v0_driver); MODULE_AUTHOR("linux-mdss-dsi-panel-driver-generator "); // FIXME MODULE_DESCRIPTION("DRM driver for mipi_mot_vid_tianma_1080p_497"); MODULE_LICENSE("GPL");