@@ -62,6 +62,14 @@ enum omapdss_version omapdss_get_version(void)
}
EXPORT_SYMBOL(omapdss_get_version);
+u32 omapdss_get_omaprev(void)
+{
+ struct omap_dss_board_info *pdata = core.pdev->dev.platform_data;
+
+ return pdata->omaprev;
+}
+EXPORT_SYMBOL(omapdss_get_omaprev);
+
struct platform_device *dss_get_core_pdev(void)
{
return core.pdev;
@@ -767,6 +767,7 @@ struct omap_dss_driver {
};
enum omapdss_version omapdss_get_version(void);
+u32 omapdss_get_omaprev(void);
bool omapdss_is_initialized(void);
int omap_dss_register_driver(struct omap_dss_driver *);
@@ -743,7 +743,6 @@ static struct drm_driver omap_drm_driver = {
static int pdev_probe(struct platform_device *pdev)
{
- struct omap_drm_platform_data *pdata = pdev->dev.platform_data;
struct omap_drm_private *priv;
struct drm_device *ddev;
unsigned int i;
@@ -769,7 +768,7 @@ static int pdev_probe(struct platform_device *pdev)
goto err_disconnect_dssdevs;
}
- priv->omaprev = pdata->omaprev;
+ priv->omaprev = omapdss_get_omaprev();
priv->wq = alloc_ordered_workqueue("omapdrm", 0);
init_waitqueue_head(&priv->commit.wait);
@@ -21,7 +21,6 @@
#define __OMAP_DRV_H__
#include <linux/module.h>
-#include <linux/platform_data/omap_drm.h>
#include <linux/types.h>
#include <linux/wait.h>
The OMAP revision is currently passed through omapdrm platform data. To prepare for removal of omapdrm platform data, get it from the omapdss. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> --- drivers/gpu/drm/omapdrm/dss/core.c | 8 ++++++++ drivers/gpu/drm/omapdrm/dss/omapdss.h | 1 + drivers/gpu/drm/omapdrm/omap_drv.c | 3 +-- drivers/gpu/drm/omapdrm/omap_drv.h | 1 - 4 files changed, 10 insertions(+), 3 deletions(-)