drm: omapdrm: Remove unused default display name support
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>
This commit is contained in:
parent
fd07ab7881
commit
278cba7eaf
|
@ -41,20 +41,8 @@
|
|||
|
||||
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:
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue