Skip to content

Commit

Permalink
MLK-25340-2: drm: imx: mhdp: Adding power off to driver remove
Browse files Browse the repository at this point in the history
The power off needs to be called in remove to keep the correct clock
enable counts.

Signed-off-by: Oliver Brown <[email protected]>
  • Loading branch information
nxpobrown committed Mar 29, 2021
1 parent e8a7398 commit 6c855f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/bridge/cadence/cdns-dp-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ static int __cdns_dp_probe(struct platform_device *pdev,

static void __cdns_dp_remove(struct cdns_mhdp_device *mhdp)
{
cdns_mhdp_plat_call(mhdp, power_off);
dp_aux_destroy(mhdp);
cdns_mhdp_unregister_audio_driver(mhdp->dev);
}
Expand Down
2 changes: 2 additions & 0 deletions drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,8 @@ static int __cdns_hdmi_probe(struct platform_device *pdev,

static void __cdns_hdmi_remove(struct cdns_mhdp_device *mhdp)
{
cdns_mhdp_plat_call(mhdp, power_off);

/* unregister cec driver */
#ifdef CONFIG_DRM_CDNS_HDMI_CEC
cdns_mhdp_unregister_cec_driver(mhdp->dev);
Expand Down

0 comments on commit 6c855f4

Please sign in to comment.