Skip to content

Commit 248adb8

Browse files
committed
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: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/499648/ Link: https://lore.kernel.org/r/20220826093927.851597-5-dmitry.baryshkov@linaro.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
1 parent 69a88d8 commit 248adb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/gpu/drm/msm/hdmi

drivers/gpu/drm/msm/hdmi/hdmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static int msm_hdmi_get_phy(struct hdmi *hdmi)
106106
return -EPROBE_DEFER;
107107
}
108108

109-
hdmi->phy_dev = get_device(&phy_pdev->dev);
109+
hdmi->phy_dev = &phy_pdev->dev;
110110

111111
return 0;
112112
}

0 commit comments

Comments
 (0)