USB: gpio_vbus: a missing cancellation of workqueue in remove() function
authorShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Thu, 17 May 2012 11:10:43 +0000 (20:10 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 May 2012 18:20:34 +0000 (11:20 -0700)
Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/otg/gpio_vbus.c

index 00e763ecb55aa73bf55d9e79128ca715c5c8b9a6..1e6bd0347aff3b2c9fdcf1a0637087af6be54180 100644 (file)
@@ -348,6 +348,7 @@ static int __exit gpio_vbus_remove(struct platform_device *pdev)
        struct gpio_vbus_mach_info *pdata = pdev->dev.platform_data;
        int gpio = pdata->gpio_vbus;
 
+       cancel_delayed_work_sync(&gpio_vbus->work);
        regulator_put(gpio_vbus->vbus_draw);
 
        usb_set_transceiver(NULL);