aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/hdmi/hdmi_phy.c
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2017-10-16 16:56:28 -0400
committerRob Clark <robdclark@gmail.com>2017-10-28 11:01:34 -0400
commitaede1e9ee4ec3d7a7b996d260ce7297a6b4dc4ca (patch)
tree55cd6a4f44848eeb5da83353c309e565e61eae05 /drivers/gpu/drm/msm/hdmi/hdmi_phy.c
parentdrm/msm/edp: convert to msm_clk_get() (diff)
downloadlinux-dev-aede1e9ee4ec3d7a7b996d260ce7297a6b4dc4ca.tar.xz
linux-dev-aede1e9ee4ec3d7a7b996d260ce7297a6b4dc4ca.zip
drm/msm/hdmi: convert to msm_clk_get()
We already have, as a result of upstreaming the gpu bindings, msm_clk_get() which will try to get the clock both without and with a "_clk" suffix. Use this in HDMI code so we can drop the "_clk" suffix in bindings while maintaing backwards compatibility. Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/hdmi/hdmi_phy.c')
-rw-r--r--drivers/gpu/drm/msm/hdmi/hdmi_phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_phy.c b/drivers/gpu/drm/msm/hdmi/hdmi_phy.c
index 534ce5b49781..5e631392dc85 100644
--- a/drivers/gpu/drm/msm/hdmi/hdmi_phy.c
+++ b/drivers/gpu/drm/msm/hdmi/hdmi_phy.c
@@ -48,7 +48,7 @@ static int msm_hdmi_phy_resource_init(struct hdmi_phy *phy)
for (i = 0; i < cfg->num_clks; i++) {
struct clk *clk;
- clk = devm_clk_get(dev, cfg->clk_names[i]);
+ clk = msm_clk_get(phy->pdev, cfg->clk_names[i]);
if (IS_ERR(clk)) {
ret = PTR_ERR(clk);
dev_err(dev, "failed to get phy clock: %s (%d)\n",