drm: omapdrm: Remove unused default display name support
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 14 Dec 2016 01:35:03 +0000 (03:35 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Jun 2017 07:57:10 +0000 (10:57 +0300)
The default display name is both unused and never set by platform data.
Remove default display name module parameter, platform data field and
runtime infrastructure.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/dss/core.c
drivers/gpu/drm/omapdrm/dss/omapdss.h
drivers/video/fbdev/omap2/omapfb/dss/core.c
include/linux/platform_data/omapdss.h

index 3351ce23f4138c2b1e7c04cef93f92d8f6fda900..bc4fa4ec8557eea97ab42e51111b06b646472123 100644 (file)
 
 static struct {
        struct platform_device *pdev;
-
-       const char *default_display_name;
 } core;
 
-static char *def_disp_name;
-module_param_named(def_disp, def_disp_name, charp, 0);
-MODULE_PARM_DESC(def_disp, "default display name");
-
-const char *omapdss_get_default_display_name(void)
-{
-       return core.default_display_name;
-}
-EXPORT_SYMBOL(omapdss_get_default_display_name);
-
 enum omapdss_version omapdss_get_version(void)
 {
        struct omap_dss_board_info *pdata = core.pdev->dev.platform_data;
@@ -175,7 +163,6 @@ static void dss_disable_all_devices(void)
 
 static int __init omap_dss_probe(struct platform_device *pdev)
 {
-       struct omap_dss_board_info *pdata = pdev->dev.platform_data;
        int r;
 
        core.pdev = pdev;
@@ -186,11 +173,6 @@ static int __init omap_dss_probe(struct platform_device *pdev)
        if (r)
                goto err_debugfs;
 
-       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;
 
 err_debugfs:
index b19dae1fd6c5e9706f2f88fbf0de88e4823abca6..3bee528380cdcfbede25c1661db9333c16057a75 100644 (file)
@@ -781,7 +781,6 @@ void omap_dss_put_device(struct omap_dss_device *dssdev);
 struct omap_dss_device *omap_dss_get_next_device(struct omap_dss_device *from);
 struct omap_dss_device *omap_dss_find_device(void *data,
                int (*match)(struct omap_dss_device *dssdev, void *data));
-const char *omapdss_get_default_display_name(void);
 
 int dss_feat_get_num_mgrs(void);
 int dss_feat_get_num_ovls(void);
index 29de4827589dc5cee33128e8b01c93eaacda805d..eecf695c16f41b6996520e47b8fa7e1b71efbabc 100644 (file)
@@ -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);
 
index 679177929045b54c30647bcd330bb0c8b802b98b..7feb011ed500a6a275f2846733978698224462a7 100644 (file)
@@ -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);