diff options
author | Jon Hunter <jonathanh@nvidia.com> | 2018-05-30 17:11:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-31 12:45:22 +0200 |
commit | 380375b937211376f1dba4543460a14d3df9f04d (patch) | |
tree | 9236aa19774d21422c1c4372fc2a3bf3e4e9ffed /drivers/usb/host | |
parent | usb: chipidea: Fix ULPI on imx51 (diff) | |
download | linux-380375b937211376f1dba4543460a14d3df9f04d.tar.xz linux-380375b937211376f1dba4543460a14d3df9f04d.zip |
usb: xhci: tegra: Fix runtime PM support
Fix silly mistake when enabling runtime PM support for the Tegra XHCI
driver. If runtime PM was enabled correctly for the XHCI device, then
we should call pm_runtime_get_sync() to enable the device.
Fixes: ee9e5f4c7825 ("usb: xhci: tegra: Add runtime PM support")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci-tegra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c index c78fc2942bca..a8c1d073cba0 100644 --- a/drivers/usb/host/xhci-tegra.c +++ b/drivers/usb/host/xhci-tegra.c @@ -1136,7 +1136,7 @@ static int tegra_xusb_probe(struct platform_device *pdev) platform_set_drvdata(pdev, tegra); pm_runtime_enable(&pdev->dev); - if (!pm_runtime_enabled(&pdev->dev)) + if (pm_runtime_enabled(&pdev->dev)) err = pm_runtime_get_sync(&pdev->dev); else err = tegra_xusb_runtime_resume(&pdev->dev); |