summaryrefslogtreecommitdiff
path: root/drivers/usb/phy/tegra-otg.c
diff options
context:
space:
mode:
authorRohith Seelaboyina <rseelaboyina@nvidia.com>2013-08-21 10:08:05 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:42:21 -0700
commitf177688ea466a25c3de4e52807785d982fa6a895 (patch)
tree4a1150a00a0e3fb5f55764c057e7aaa9982a878f /drivers/usb/phy/tegra-otg.c
parent888e4e77a2ad822443610c8d8c267d533f066f00 (diff)
usb: otg: tegra: detect device cable through pmu
Device cable and OTG cable should be detected through pmu as extcon framework notifies when change is detected in either vbus or id, registering for notifications to only one of them will lead to handling notifications for unwanted events. Bug 1345401 Change-Id: I0da42fbf715bbcf32bf3741ab045997c43cebf77 Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com> Reviewed-on: http://git-master/r/263872 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers/usb/phy/tegra-otg.c')
-rw-r--r--drivers/usb/phy/tegra-otg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/tegra-otg.c b/drivers/usb/phy/tegra-otg.c
index d8bb4f7c544c..77517da2001f 100644
--- a/drivers/usb/phy/tegra-otg.c
+++ b/drivers/usb/phy/tegra-otg.c
@@ -842,7 +842,7 @@ static int tegra_otg_suspend(struct device *dev)
mutex_lock(&tegra->irq_work_mutex);
DBG("%s(%d) BEGIN state : %s\n", __func__, __LINE__,
- tegra_state_name(tegra->phy->state));
+ tegra_state_name(tegra->phy.state));
pm_runtime_get_sync(dev);
clk_prepare_enable(tegra->clk);