usb: host: fix tegra_ehci_remove() warnings
authorVenu Byravarasu <vbyravarasu@nvidia.com>
Wed, 8 Aug 2012 11:59:36 +0000 (16:59 +0530)
committerSimone Willett <swillett@nvidia.com>
Fri, 10 Aug 2012 01:06:00 +0000 (18:06 -0700)
commit7b3a327acb3a63fddc14f2b3ecd19a7ea8f41b3e
tree31ae932fc3e3a92344ed1fa7f183c79d615fbcde
parentdf73b460996b2f6e2c0b0d93b3679d6dca9d4615
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