usb: host: fix tegra_ehci_remove() warnings
authorVenu Byravarasu <vbyravarasu@nvidia.com>
Wed, 8 Aug 2012 11:59:36 +0000 (16:59 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Fri, 10 Aug 2012 07:13:43 +0000 (12:13 +0530)
commit6fc6aad34333ea8f0088bb48da489f343d33a9c1
treee4dddf0b8a64559ad482de305471ae0078f54b60
parent86e595d240217586812e3cae2e36f3bf37087c8f
usb: host: fix tegra_ehci_remove() warnings

usb_put_hcd calls hcd_release which frees up memory allocated
for hcd. As iounmap is called after usb_put_hcd and it is trying
to access hcd->regs, getting warning messages during unload of
USB. Hence fixing it.

bug 1023362

Change-Id: Ic339395edad9a76a9eeae290eff3517d2c714477
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/122088
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Tested-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/usb/host/ehci-tegra.c