static int dpu_dev_probe(struct platform_device *pdev)
{
- return msm_drv_probe(&pdev->dev, dpu_kms_init);
+ return msm_drv_probe(&pdev->dev, dpu_kms_init, NULL);
}
static int dpu_dev_remove(struct platform_device *pdev)
static int mdp4_probe(struct platform_device *pdev)
{
- return msm_drv_probe(&pdev->dev, mdp4_kms_init);
+ return msm_drv_probe(&pdev->dev, mdp4_kms_init, NULL);
}
static int mdp4_remove(struct platform_device *pdev)
if (ret)
return ret;
- return msm_drv_probe(&pdev->dev, mdp5_kms_init);
+ return msm_drv_probe(&pdev->dev, mdp5_kms_init, NULL);
}
static int mdp5_dev_remove(struct platform_device *pdev)
};
int msm_drv_probe(struct device *master_dev,
- int (*kms_init)(struct drm_device *dev))
+ int (*kms_init)(struct drm_device *dev),
+ struct msm_kms *kms)
{
struct msm_drm_private *priv;
struct component_match *match = NULL;
if (!priv)
return -ENOMEM;
+ priv->kms = kms;
priv->kms_init = kms_init;
dev_set_drvdata(master_dev, priv);
static int msm_pdev_probe(struct platform_device *pdev)
{
- return msm_drv_probe(&pdev->dev, NULL);
+ return msm_drv_probe(&pdev->dev, NULL, NULL);
}
static int msm_pdev_remove(struct platform_device *pdev)
void msm_pm_complete(struct device *dev);
int msm_drv_probe(struct device *dev,
- int (*kms_init)(struct drm_device *dev));
+ int (*kms_init)(struct drm_device *dev),
+ struct msm_kms *kms);
void msm_drv_shutdown(struct platform_device *pdev);