aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/renesas_usbhs/common.c')
-rw-r--r--drivers/usb/renesas_usbhs/common.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c
index 072edc1cc55f..38bce046f4d0 100644
--- a/drivers/usb/renesas_usbhs/common.c
+++ b/drivers/usb/renesas_usbhs/common.c
@@ -132,6 +132,11 @@ void usbhs_sys_function_ctrl(struct usbhs_priv *priv, int enable)
132 usbhs_bset(priv, SYSCFG, mask, enable ? val : 0); 132 usbhs_bset(priv, SYSCFG, mask, enable ? val : 0);
133} 133}
134 134
135void usbhs_sys_function_pullup(struct usbhs_priv *priv, int enable)
136{
137 usbhs_bset(priv, SYSCFG, DPRPU, enable ? DPRPU : 0);
138}
139
135void usbhs_sys_set_test_mode(struct usbhs_priv *priv, u16 mode) 140void usbhs_sys_set_test_mode(struct usbhs_priv *priv, u16 mode)
136{ 141{
137 usbhs_write(priv, TESTMODE, mode); 142 usbhs_write(priv, TESTMODE, mode);
@@ -551,7 +556,7 @@ probe_end_pipe_exit:
551 return ret; 556 return ret;
552} 557}
553 558
554static int __devexit usbhs_remove(struct platform_device *pdev) 559static int usbhs_remove(struct platform_device *pdev)
555{ 560{
556 struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev); 561 struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev);
557 struct renesas_usbhs_platform_info *info = pdev->dev.platform_data; 562 struct renesas_usbhs_platform_info *info = pdev->dev.platform_data;
@@ -631,7 +636,7 @@ static struct platform_driver renesas_usbhs_driver = {
631 .pm = &usbhsc_pm_ops, 636 .pm = &usbhsc_pm_ops,
632 }, 637 },
633 .probe = usbhs_probe, 638 .probe = usbhs_probe,
634 .remove = __devexit_p(usbhs_remove), 639 .remove = usbhs_remove,
635}; 640};
636 641
637module_platform_driver(renesas_usbhs_driver); 642module_platform_driver(renesas_usbhs_driver);