]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/msm/hdmi: don't take extra reference on PHY device
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 26 Aug 2022 09:39:26 +0000 (12:39 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 4 Nov 2022 12:29:04 +0000 (15:29 +0300)
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>
drivers/gpu/drm/msm/hdmi/hdmi.c

index 416395837b643062feff27927d354449b6d0ccc0..8c83371d40d01ff21e752359ee914951657acbc4 100644 (file)
@@ -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;
 }