tegra: usb: otg: factorize host registration code
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 2 Nov 2011 07:57:31 +0000 (16:57 +0900)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:49:50 +0000 (21:49 -0800)
commit7371eedb299b7d5524476377985e910dc023bb90
tree7eab6e06b919b69874df9b933df2cb4469706b2b
parentfd59e8417531bc79da00319b967dcd63cbf88b38
tegra: usb: otg: factorize host registration code

OTG host register/unregister functions were duplicated identically
across all board files, making the code difficult to maintain (and
actually some boards did not get all some code fixes leading to the same
bug being met again and again). This patch moves this common code into
tegra-otg.c.

Bug 884315
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Change-Id: I99b118664f0481f6c5470411b43f36609e0feb52
Reviewed-on: http://git-master/r/61763
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R0f6060514c017946cc9ae2ba2f04a1c134d14d9b
arch/arm/mach-tegra/board-aruba.c
arch/arm/mach-tegra/board-cardhu.c
arch/arm/mach-tegra/board-enterprise.c
arch/arm/mach-tegra/board-ventana.c
arch/arm/mach-tegra/board-whistler.c
drivers/usb/otg/tegra-otg.c
include/linux/platform_data/tegra_usb.h