Commit 248adb81 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov

drm/msm/hdmi: don't take extra reference on PHY device

The of_find_device_by_node() already increments the device's usage
count, so there is no need to increment it again using get_device().
Drop this extra get_device().
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarAbhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/499648/
Link: https://lore.kernel.org/r/20220826093927.851597-5-dmitry.baryshkov@linaro.orgSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
parent 69a88d86
......@@ -106,7 +106,7 @@ static int msm_hdmi_get_phy(struct hdmi *hdmi)
return -EPROBE_DEFER;
}
hdmi->phy_dev = get_device(&phy_pdev->dev);
hdmi->phy_dev = &phy_pdev->dev;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment