summaryrefslogtreecommitdiff
path: root/arch/arm/plat-s5p/dev-ehci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-s5p/dev-ehci.c')
-rw-r--r--arch/arm/plat-s5p/dev-ehci.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/plat-s5p/dev-ehci.c b/arch/arm/plat-s5p/dev-ehci.c
index a610e5c60964..94080fff9e9b 100644
--- a/arch/arm/plat-s5p/dev-ehci.c
+++ b/arch/arm/plat-s5p/dev-ehci.c
@@ -45,6 +45,13 @@ struct platform_device s5p_device_ehci = {
void __init s5p_ehci_set_platdata(struct s5p_ehci_platdata *pd)
{
- s3c_set_platdata(pd, sizeof(struct s5p_ehci_platdata),
+ struct s5p_ehci_platdata *npd;
+
+ npd = s3c_set_platdata(pd, sizeof(struct s5p_ehci_platdata),
&s5p_device_ehci);
+
+ if (!npd->phy_init)
+ npd->phy_init = s5p_usb_phy_init;
+ if (!npd->phy_exit)
+ npd->phy_exit = s5p_usb_phy_exit;
}