diff options
author | Alexandre Torgue <alexandre.torgue@st.com> | 2019-11-04 17:37:13 +0300 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2020-01-08 10:18:47 +0300 |
commit | 987351e1ea7772cf2f0795e917fb33b2e282e1c1 (patch) | |
tree | 2a5fff9f6ba5160673294c4bb0421df7d874baeb /drivers/usb/renesas_usbhs/rcar2.c | |
parent | 24dbe0aaa0030231d4d35886d3552121d208df69 (diff) | |
download | linux-987351e1ea7772cf2f0795e917fb33b2e282e1c1.tar.xz |
phy: core: Add consumer device link support
In order to enforce suspend/resume ordering, this commit creates link
between phy consumers and phy devices. This link avoids to suspend phy
before phy consumers.
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
[jonathanh@nvidia.com: Fix an abort when of_phy_get() returns error]
Signed-off-by: Jonathan Hunter <jonathanh@nvidia.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs/rcar2.c')
-rw-r--r-- | drivers/usb/renesas_usbhs/rcar2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/rcar2.c b/drivers/usb/renesas_usbhs/rcar2.c index 440d213e1749..791908f8cf73 100644 --- a/drivers/usb/renesas_usbhs/rcar2.c +++ b/drivers/usb/renesas_usbhs/rcar2.c @@ -34,7 +34,7 @@ static int usbhs_rcar2_hardware_exit(struct platform_device *pdev) struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev); if (priv->phy) { - phy_put(priv->phy); + phy_put(&pdev->dev, priv->phy); priv->phy = NULL; } |