diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2011-11-02 16:57:31 +0900 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:50 -0800 |
commit | 7371eedb299b7d5524476377985e910dc023bb90 (patch) | |
tree | 7eab6e06b919b69874df9b933df2cb4469706b2b /include | |
parent | fd59e8417531bc79da00319b967dcd63cbf88b38 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/platform_data/tegra_usb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/platform_data/tegra_usb.h b/include/linux/platform_data/tegra_usb.h index cf75a98f5c37..09f32de5c671 100644 --- a/include/linux/platform_data/tegra_usb.h +++ b/include/linux/platform_data/tegra_usb.h @@ -40,8 +40,8 @@ struct tegra_ehci_platform_data { }; struct tegra_otg_platform_data { - struct platform_device* (*host_register)(void); - void (*host_unregister)(struct platform_device*); + struct platform_device *ehci_device; + struct tegra_ehci_platform_data *ehci_pdata; }; #endif /* _TEGRA_USB_H_ */ |