aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/dss.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/omap2/dss/dss.c')
-rw-r--r--drivers/video/omap2/dss/dss.c3
1 files changed, 1 insertions, 2 deletions
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
794static int __init dss_init_features(struct platform_device *pdev) 794static 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;