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 <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/499648/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 69a88d8 commit 248adb8

File tree

1 file changed

+1
-1
lines changed
  • drivers/gpu/drm/msm/hdmi

1 file changed

+1
-1
lines changed

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)