usb: gadget: renesas_usbhs: tidyup the unit of detection_delay
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 24 Oct 2011 02:57:02 +0000 (19:57 -0700)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Dec 2011 09:44:57 +0000 (11:44 +0200)
detection_delay was assumed as msec

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/common.c
include/linux/usb/renesas_usbhs.h

index 1ce32d92e72055549aae7434185cc41fdd67389f..b4cf555ce58e8cd3fb7617b9f523132d7bbdb256 100644 (file)
@@ -388,7 +388,8 @@ int usbhsc_drvcllbck_notify_hotplug(struct platform_device *pdev)
         * To make sure safety context,
         * use workqueue for usbhs_notify_hotplug
         */
-       schedule_delayed_work(&priv->notify_hotplug_work, delay);
+       schedule_delayed_work(&priv->notify_hotplug_work,
+                             msecs_to_jiffies(delay));
        return 0;
 }
 
index e5a40c3185485e6f313640b409fb0ec8390498a7..c9fceb9f7690eca3f284057321a3d9ff8a94b1ed 100644 (file)
@@ -118,7 +118,7 @@ struct renesas_usbhs_driver_param {
         *
         * delay time from notify_hotplug callback
         */
-       int detection_delay;
+       int detection_delay; /* msec */
 
        /*
         * option: