usb: host: tegra: make use of PHY pointer of HCD
authorVenu Byravarasu <vbyravarasu@nvidia.com>
Thu, 24 Jan 2013 10:27:03 +0000 (15:57 +0530)
committerStephen Warren <swarren@nvidia.com>
Mon, 28 Jan 2013 18:42:11 +0000 (11:42 -0700)
commitab137d04db5a4b32250ce5ef1b288ce6cf06adf6
treee11f30d35f28c701b9c58508e06a92c81ec02c51
parent40e8b3a690ec0ef574c458a991eb647e56683b7d
usb: host: tegra: make use of PHY pointer of HCD

As pointer to PHY structure can be stored in struct usb_hcd
making use of it, to call Tegra PHY APIs.

Call to usb_phy_shutdown() is moved up in tegra_ehci_remove(),
so that to avoid dereferencing of hcd after its freed up.

Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Felipe Balbi <balbi@ti.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/usb/host/ehci-tegra.c
drivers/usb/phy/tegra_usb_phy.c
include/linux/usb/tegra_usb_phy.h