diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/omap2/dss/core.c | 9 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dispc.c | 3 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss.c | 3 | ||||
-rw-r--r-- | drivers/video/omap2/dss/hdmi.c | 3 |
4 files changed, 11 insertions, 7 deletions
diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c index 00aa026e307c..685d9a957b19 100644 --- a/drivers/video/omap2/dss/core.c +++ b/drivers/video/omap2/dss/core.c | |||
@@ -58,6 +58,13 @@ const char *dss_get_default_display_name(void) | |||
58 | return core.default_display_name; | 58 | return core.default_display_name; |
59 | } | 59 | } |
60 | 60 | ||
61 | enum omapdss_version omapdss_get_version(void) | ||
62 | { | ||
63 | struct omap_dss_board_info *pdata = core.pdev->dev.platform_data; | ||
64 | return pdata->version; | ||
65 | } | ||
66 | EXPORT_SYMBOL(omapdss_get_version); | ||
67 | |||
61 | /* REGULATORS */ | 68 | /* REGULATORS */ |
62 | 69 | ||
63 | struct regulator *dss_get_vdds_dsi(void) | 70 | struct regulator *dss_get_vdds_dsi(void) |
@@ -232,7 +239,7 @@ static int __init omap_dss_probe(struct platform_device *pdev) | |||
232 | 239 | ||
233 | core.pdev = pdev; | 240 | core.pdev = pdev; |
234 | 241 | ||
235 | dss_features_init(pdata->version); | 242 | dss_features_init(omapdss_get_version()); |
236 | 243 | ||
237 | dss_apply_init(); | 244 | dss_apply_init(); |
238 | 245 | ||
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c index 6dd9eb4a2c5b..817d671e2baa 100644 --- a/drivers/video/omap2/dss/dispc.c +++ b/drivers/video/omap2/dss/dispc.c | |||
@@ -4098,7 +4098,6 @@ static const struct dispc_features omap44xx_dispc_feats __initconst = { | |||
4098 | 4098 | ||
4099 | static int __init dispc_init_features(struct platform_device *pdev) | 4099 | static int __init dispc_init_features(struct platform_device *pdev) |
4100 | { | 4100 | { |
4101 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; | ||
4102 | const struct dispc_features *src; | 4101 | const struct dispc_features *src; |
4103 | struct dispc_features *dst; | 4102 | struct dispc_features *dst; |
4104 | 4103 | ||
@@ -4108,7 +4107,7 @@ static int __init dispc_init_features(struct platform_device *pdev) | |||
4108 | return -ENOMEM; | 4107 | return -ENOMEM; |
4109 | } | 4108 | } |
4110 | 4109 | ||
4111 | switch (pdata->version) { | 4110 | switch (omapdss_get_version()) { |
4112 | case OMAPDSS_VER_OMAP24xx: | 4111 | case OMAPDSS_VER_OMAP24xx: |
4113 | src = &omap24xx_dispc_feats; | 4112 | src = &omap24xx_dispc_feats; |
4114 | break; | 4113 | break; |
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c index 37ee465c1a0e..d90de37288c4 100644 --- a/drivers/video/omap2/dss/dss.c +++ b/drivers/video/omap2/dss/dss.c | |||
@@ -793,7 +793,6 @@ static const struct dss_features omap54xx_dss_feats __initconst = { | |||
793 | 793 | ||
794 | static int __init dss_init_features(struct platform_device *pdev) | 794 | static int __init dss_init_features(struct platform_device *pdev) |
795 | { | 795 | { |
796 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; | ||
797 | const struct dss_features *src; | 796 | const struct dss_features *src; |
798 | struct dss_features *dst; | 797 | struct dss_features *dst; |
799 | 798 | ||
@@ -803,7 +802,7 @@ static int __init dss_init_features(struct platform_device *pdev) | |||
803 | return -ENOMEM; | 802 | return -ENOMEM; |
804 | } | 803 | } |
805 | 804 | ||
806 | switch (pdata->version) { | 805 | switch (omapdss_get_version()) { |
807 | case OMAPDSS_VER_OMAP24xx: | 806 | case OMAPDSS_VER_OMAP24xx: |
808 | src = &omap24xx_dss_feats; | 807 | src = &omap24xx_dss_feats; |
809 | break; | 808 | break; |
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c index adcc906d12f8..c1c54883fbe7 100644 --- a/drivers/video/omap2/dss/hdmi.c +++ b/drivers/video/omap2/dss/hdmi.c | |||
@@ -323,7 +323,6 @@ static void hdmi_runtime_put(void) | |||
323 | 323 | ||
324 | static int __init hdmi_init_display(struct omap_dss_device *dssdev) | 324 | static int __init hdmi_init_display(struct omap_dss_device *dssdev) |
325 | { | 325 | { |
326 | struct omap_dss_board_info *pdata = hdmi.pdev->dev.platform_data; | ||
327 | int r; | 326 | int r; |
328 | 327 | ||
329 | struct gpio gpios[] = { | 328 | struct gpio gpios[] = { |
@@ -334,7 +333,7 @@ static int __init hdmi_init_display(struct omap_dss_device *dssdev) | |||
334 | 333 | ||
335 | DSSDBG("init_display\n"); | 334 | DSSDBG("init_display\n"); |
336 | 335 | ||
337 | dss_init_hdmi_ip_ops(&hdmi.ip_data, pdata->version); | 336 | dss_init_hdmi_ip_ops(&hdmi.ip_data, omapdss_get_version()); |
338 | 337 | ||
339 | if (hdmi.vdda_hdmi_dac_reg == NULL) { | 338 | if (hdmi.vdda_hdmi_dac_reg == NULL) { |
340 | struct regulator *reg; | 339 | struct regulator *reg; |