Commit fe5c5fba authored by Archit Taneja's avatar Archit Taneja Committed by Tomi Valkeinen

arm: omap boards: Remove unnecessary platform_enable/disable callbacks for VENC devices

The omap_dss_device's platform_enable/disable callbacks don't do anything for
any of the boards. The platform calls from the VENC driver will also be removed
in the future. Remove these calls from the board which have a VENC device.
Signed-off-by: default avatarArchit Taneja <archit@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Acked-by: default avatarIgor Grinberg <grinberg@compulab.co.il>
parent e5e53322
...@@ -126,15 +126,6 @@ static void __init sdp3430_display_init(void) ...@@ -126,15 +126,6 @@ static void __init sdp3430_display_init(void)
} }
static int sdp3430_panel_enable_tv(struct omap_dss_device *dssdev)
{
return 0;
}
static void sdp3430_panel_disable_tv(struct omap_dss_device *dssdev)
{
}
static struct panel_sharp_ls037v7dw01_data sdp3430_lcd_data = { static struct panel_sharp_ls037v7dw01_data sdp3430_lcd_data = {
.resb_gpio = SDP3430_LCD_PANEL_ENABLE_GPIO, .resb_gpio = SDP3430_LCD_PANEL_ENABLE_GPIO,
.ini_gpio = -1, .ini_gpio = -1,
...@@ -169,8 +160,6 @@ static struct omap_dss_device sdp3430_tv_device = { ...@@ -169,8 +160,6 @@ static struct omap_dss_device sdp3430_tv_device = {
.driver_name = "venc", .driver_name = "venc",
.type = OMAP_DISPLAY_TYPE_VENC, .type = OMAP_DISPLAY_TYPE_VENC,
.phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO, .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
.platform_enable = sdp3430_panel_enable_tv,
.platform_disable = sdp3430_panel_disable_tv,
}; };
......
...@@ -138,22 +138,11 @@ static struct omap_dss_device am3517_evm_lcd_device = { ...@@ -138,22 +138,11 @@ static struct omap_dss_device am3517_evm_lcd_device = {
.phy.dpi.data_lines = 16, .phy.dpi.data_lines = 16,
}; };
static int am3517_evm_panel_enable_tv(struct omap_dss_device *dssdev)
{
return 0;
}
static void am3517_evm_panel_disable_tv(struct omap_dss_device *dssdev)
{
}
static struct omap_dss_device am3517_evm_tv_device = { static struct omap_dss_device am3517_evm_tv_device = {
.type = OMAP_DISPLAY_TYPE_VENC, .type = OMAP_DISPLAY_TYPE_VENC,
.name = "tv", .name = "tv",
.driver_name = "venc", .driver_name = "venc",
.phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO, .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
.platform_enable = am3517_evm_panel_enable_tv,
.platform_disable = am3517_evm_panel_disable_tv,
}; };
static struct tfp410_platform_data dvi_panel = { static struct tfp410_platform_data dvi_panel = {
......
...@@ -190,15 +190,6 @@ static inline void cm_t35_init_nand(void) {} ...@@ -190,15 +190,6 @@ static inline void cm_t35_init_nand(void) {}
#define CM_T35_LCD_BL_GPIO 58 #define CM_T35_LCD_BL_GPIO 58
#define CM_T35_DVI_EN_GPIO 54 #define CM_T35_DVI_EN_GPIO 54
static int cm_t35_panel_enable_tv(struct omap_dss_device *dssdev)
{
return 0;
}
static void cm_t35_panel_disable_tv(struct omap_dss_device *dssdev)
{
}
static struct panel_generic_dpi_data lcd_panel = { static struct panel_generic_dpi_data lcd_panel = {
.name = "toppoly_tdo35s", .name = "toppoly_tdo35s",
.num_gpios = 1, .num_gpios = 1,
...@@ -233,8 +224,6 @@ static struct omap_dss_device cm_t35_tv_device = { ...@@ -233,8 +224,6 @@ static struct omap_dss_device cm_t35_tv_device = {
.driver_name = "venc", .driver_name = "venc",
.type = OMAP_DISPLAY_TYPE_VENC, .type = OMAP_DISPLAY_TYPE_VENC,
.phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO, .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
.platform_enable = cm_t35_panel_enable_tv,
.platform_disable = cm_t35_panel_disable_tv,
}; };
static struct omap_dss_device *cm_t35_dss_devices[] = { static struct omap_dss_device *cm_t35_dss_devices[] = {
......
...@@ -202,22 +202,11 @@ static struct omap_dss_device omap3_evm_lcd_device = { ...@@ -202,22 +202,11 @@ static struct omap_dss_device omap3_evm_lcd_device = {
.data = &omap3_evm_lcd_data, .data = &omap3_evm_lcd_data,
}; };
static int omap3_evm_enable_tv(struct omap_dss_device *dssdev)
{
return 0;
}
static void omap3_evm_disable_tv(struct omap_dss_device *dssdev)
{
}
static struct omap_dss_device omap3_evm_tv_device = { static struct omap_dss_device omap3_evm_tv_device = {
.name = "tv", .name = "tv",
.driver_name = "venc", .driver_name = "venc",
.type = OMAP_DISPLAY_TYPE_VENC, .type = OMAP_DISPLAY_TYPE_VENC,
.phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO, .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
.platform_enable = omap3_evm_enable_tv,
.platform_disable = omap3_evm_disable_tv,
}; };
static struct tfp410_platform_data dvi_panel = { static struct tfp410_platform_data dvi_panel = {
......
...@@ -94,15 +94,6 @@ static void __init omap3_stalker_display_init(void) ...@@ -94,15 +94,6 @@ static void __init omap3_stalker_display_init(void)
return; return;
} }
static int omap3_stalker_enable_tv(struct omap_dss_device *dssdev)
{
return 0;
}
static void omap3_stalker_disable_tv(struct omap_dss_device *dssdev)
{
}
static struct omap_dss_device omap3_stalker_tv_device = { static struct omap_dss_device omap3_stalker_tv_device = {
.name = "tv", .name = "tv",
.driver_name = "venc", .driver_name = "venc",
...@@ -112,8 +103,6 @@ static struct omap_dss_device omap3_stalker_tv_device = { ...@@ -112,8 +103,6 @@ static struct omap_dss_device omap3_stalker_tv_device = {
#elif defined(CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE) #elif defined(CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE)
.u.venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE, .u.venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE,
#endif #endif
.platform_enable = omap3_stalker_enable_tv,
.platform_disable = omap3_stalker_disable_tv,
}; };
static struct tfp410_platform_data dvi_panel = { static struct tfp410_platform_data dvi_panel = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment