aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-10-23 22:57:02 -0400
committerFelipe Balbi <balbi@ti.com>2011-12-12 04:44:57 -0500
commita49a88f108516fd5ae24e26df5a63beb847807df (patch)
tree410cb24207a4c0c0e909244bd5e7ddb5bb96a3f7
parent25234b46be2a1688d38fb55ed9d7e3f2cc41c9af (diff)
usb: gadget: renesas_usbhs: tidyup the unit of detection_delay
detection_delay was assumed as msec Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/renesas_usbhs/common.c3
-rw-r--r--include/linux/usb/renesas_usbhs.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c
index 1ce32d92e720..b4cf555ce58e 100644
--- a/drivers/usb/renesas_usbhs/common.c
+++ b/drivers/usb/renesas_usbhs/common.c
@@ -388,7 +388,8 @@ int usbhsc_drvcllbck_notify_hotplug(struct platform_device *pdev)
388 * To make sure safety context, 388 * To make sure safety context,
389 * use workqueue for usbhs_notify_hotplug 389 * use workqueue for usbhs_notify_hotplug
390 */ 390 */
391 schedule_delayed_work(&priv->notify_hotplug_work, delay); 391 schedule_delayed_work(&priv->notify_hotplug_work,
392 msecs_to_jiffies(delay));
392 return 0; 393 return 0;
393} 394}
394 395
diff --git a/include/linux/usb/renesas_usbhs.h b/include/linux/usb/renesas_usbhs.h
index e5a40c318548..c9fceb9f7690 100644
--- a/include/linux/usb/renesas_usbhs.h
+++ b/include/linux/usb/renesas_usbhs.h
@@ -118,7 +118,7 @@ struct renesas_usbhs_driver_param {
118 * 118 *
119 * delay time from notify_hotplug callback 119 * delay time from notify_hotplug callback
120 */ 120 */
121 int detection_delay; 121 int detection_delay; /* msec */
122 122
123 /* 123 /*
124 * option: 124 * option: