Commit 937154e4 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Rob Clark
Browse files

drm/msm: rename msm_drv_shutdown() to msm_kms_shutdown()



The msm_drv_shutdown function should only be used in the KMS case.
Rename it accordingly.

Reviewed-by: default avatarRob Clark <robdclark@gmail.com>
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/561652/


Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
parent 283add3e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1372,7 +1372,7 @@ MODULE_DEVICE_TABLE(of, dpu_dt_match);
static struct platform_driver dpu_driver = {
	.probe = dpu_dev_probe,
	.remove = dpu_dev_remove,
	.shutdown = msm_drv_shutdown,
	.shutdown = msm_kms_shutdown,
	.driver = {
		.name = "msm_dpu",
		.of_match_table = dpu_dt_match,
+1 −1
Original line number Diff line number Diff line
@@ -572,7 +572,7 @@ MODULE_DEVICE_TABLE(of, mdp4_dt_match);
static struct platform_driver mdp4_platform_driver = {
	.probe      = mdp4_probe,
	.remove     = mdp4_remove,
	.shutdown   = msm_drv_shutdown,
	.shutdown   = msm_kms_shutdown,
	.driver     = {
		.name   = "mdp4",
		.of_match_table = mdp4_dt_match,
+1 −1
Original line number Diff line number Diff line
@@ -976,7 +976,7 @@ MODULE_DEVICE_TABLE(of, mdp5_dt_match);
static struct platform_driver mdp5_driver = {
	.probe = mdp5_dev_probe,
	.remove = mdp5_dev_remove,
	.shutdown = msm_drv_shutdown,
	.shutdown = msm_kms_shutdown,
	.driver = {
		.name = "msm_mdp",
		.of_match_table = mdp5_dt_match,
+1 −1
Original line number Diff line number Diff line
@@ -1278,7 +1278,7 @@ static int msm_pdev_remove(struct platform_device *pdev)
	return 0;
}

void msm_drv_shutdown(struct platform_device *pdev)
void msm_kms_shutdown(struct platform_device *pdev)
{
	struct msm_drm_private *priv = platform_get_drvdata(pdev);
	struct drm_device *drm = priv ? priv->dev : NULL;
+1 −1
Original line number Diff line number Diff line
@@ -569,7 +569,7 @@ void msm_kms_pm_complete(struct device *dev);
int msm_drv_probe(struct device *dev,
	int (*kms_init)(struct drm_device *dev),
	struct msm_kms *kms);
void msm_drv_shutdown(struct platform_device *pdev);
void msm_kms_shutdown(struct platform_device *pdev);


#endif /* __MSM_DRV_H__ */