[PATCH/RFC v1.1 12/7] drm: omapdrm: Remove unused omapdss platform data field
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Sun Dec 18 00:54:22 UTC 2016
The omapdss platform data default_display_name field is unused.
Remove it.
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
Changes since v1:
- Don't remove the platform callbacks as they're still used by the
omapfb driver.
---
drivers/gpu/drm/omapdrm/dss/core.c | 2 --
drivers/video/fbdev/omap2/omapfb/dss/core.c | 2 --
include/linux/platform_data/omapdss.h | 1 -
3 files changed, 5 deletions(-)
diff --git a/drivers/gpu/drm/omapdrm/dss/core.c b/drivers/gpu/drm/omapdrm/dss/core.c
index 3d36174667ec..49c412a6a8a9 100644
--- a/drivers/gpu/drm/omapdrm/dss/core.c
+++ b/drivers/gpu/drm/omapdrm/dss/core.c
@@ -178,8 +178,6 @@ static int __init omap_dss_probe(struct platform_device *pdev)
if (def_disp_name)
core.default_display_name = def_disp_name;
- else if (pdata->default_display_name)
- core.default_display_name = pdata->default_display_name;
return 0;
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/core.c b/drivers/video/fbdev/omap2/omapfb/dss/core.c
index 29de4827589d..eecf695c16f4 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/core.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/core.c
@@ -206,8 +206,6 @@ static int __init omap_dss_probe(struct platform_device *pdev)
if (def_disp_name)
core.default_display_name = def_disp_name;
- else if (pdata->default_display_name)
- core.default_display_name = pdata->default_display_name;
register_pm_notifier(&omap_dss_pm_notif_block);
diff --git a/include/linux/platform_data/omapdss.h b/include/linux/platform_data/omapdss.h
index e71bb1d1b7ba..5d87bfa8df69 100644
--- a/include/linux/platform_data/omapdss.h
+++ b/include/linux/platform_data/omapdss.h
@@ -27,7 +27,6 @@ enum omapdss_version {
/* Board specific data */
struct omap_dss_board_info {
- const char *default_display_name;
int (*dsi_enable_pads)(int dsi_id, unsigned int lane_mask);
void (*dsi_disable_pads)(int dsi_id, unsigned int lane_mask);
int (*set_min_bus_tput)(struct device *dev, unsigned long r);
--
Regards,
Laurent Pinchart
More information about the dri-devel
mailing list