Use the new generic-dpi-panel platform driver instead of the old
omap_dss_driver.

Signed-off-by: Tomi Valkeinen <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Igor Grinberg <[email protected]>
---
 arch/arm/mach-omap2/board-cm-t35.c |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/arch/arm/mach-omap2/board-cm-t35.c 
b/arch/arm/mach-omap2/board-cm-t35.c
index 4f23be0..6b8aa87 100644
--- a/arch/arm/mach-omap2/board-cm-t35.c
+++ b/arch/arm/mach-omap2/board-cm-t35.c
@@ -214,21 +214,21 @@ static void cm_t35_panel_disable_lcd(struct 
omap_dss_device *dssdev)
 }
 
 static struct panel_generic_dpi_data lcd_panel = {
+       .display_name           = "lcd",
+       .source                 = "dpi.0",
        .name                   = "toppoly_tdo35s",
+       .data_lines             = 18,
        .platform_enable        = cm_t35_panel_enable_lcd,
        .platform_disable       = cm_t35_panel_disable_lcd,
 };
 
-static struct omap_dss_device cm_t35_lcd_device = {
-       .name                   = "lcd",
-       .type                   = OMAP_DISPLAY_TYPE_DPI,
-       .driver_name            = "generic_dpi_panel",
-       .data                   = &lcd_panel,
-       .phy.dpi.data_lines     = 18,
+static struct platform_device cm_t35_lcd_device = {
+       .name                   = "generic_dpi_panel",
+       .id                     = 0,
+       .dev.platform_data      = &lcd_panel,
 };
 
 static struct omap_dss_device *cm_t35_dss_devices[] = {
-       &cm_t35_lcd_device,
        &cm_t35_tv_device,
 };
 
@@ -282,6 +282,8 @@ static void __init cm_t35_init_display(void)
        msleep(50);
        gpio_set_value(CM_T35_LCD_EN_GPIO, 1);
 
+       platform_device_register(&cm_t35_lcd_device);
+
        err = omap_display_init(&cm_t35_dss_data);
        if (err) {
                pr_err("CM-T35: failed to register DSS device\n");
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to