diff mbox

[18/28] ARM: OMAP: CM-T35: use new TFP410 platform driver

Message ID 1364474962-20439-19-git-send-email-tomi.valkeinen@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Tomi Valkeinen March 28, 2013, 12:49 p.m. UTC
Use the new TFP410 platform driver instead of the old omap_dss_driver.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Mike Rapoport <mike@compulab.co.il>
Cc: Igor Grinberg <grinberg@compulab.co.il>
---
 arch/arm/mach-omap2/board-cm-t35.c |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c
index 1b34c96..4f23be0 100644
--- a/arch/arm/mach-omap2/board-cm-t35.c
+++ b/arch/arm/mach-omap2/board-cm-t35.c
@@ -294,20 +294,20 @@  static void __init cm_t35_init_display(void)
 #define CM_T35_DVI_EN_GPIO 54
 
 static struct tfp410_platform_data dvi_panel = {
+	.name			= "dvi",
+	.source			= "dpi.0",
+	.data_lines		= 24,
 	.power_down_gpio	= CM_T35_DVI_EN_GPIO,
 	.i2c_bus_num		= -1,
 };
 
-static struct omap_dss_device cm_t35_dvi_device = {
-	.name			= "dvi",
-	.type			= OMAP_DISPLAY_TYPE_DPI,
-	.driver_name		= "tfp410",
-	.data			= &dvi_panel,
-	.phy.dpi.data_lines	= 24,
+static struct platform_device cm_t35_dvi_device = {
+	.name			= "tfp410",
+	.id			= 0,
+	.dev.platform_data	= &dvi_panel,
 };
 
 static struct omap_dss_device *cm_t35_dss_devices[] = {
-	&cm_t35_dvi_device,
 	&cm_t35_tv_device,
 };
 
@@ -321,6 +321,8 @@  static void __init cm_t35_init_display(void)
 {
 	int err;
 
+	platform_device_register(&cm_t35_dvi_device);
+
 	err = omap_display_init(&cm_t35_dss_data);
 	if (err)
 		pr_err("CM-T35: failed to register DSS device\n");