From: Shinya Kuribayashi Date: Thu, 17 May 2012 11:10:43 +0000 (+0900) Subject: USB: gpio_vbus: a missing cancellation of workqueue in remove() function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec1ac6e1690adf4087afdc706770cb6fb732157b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git USB: gpio_vbus: a missing cancellation of workqueue in remove() function Signed-off-by: Shinya Kuribayashi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/otg/gpio_vbus.c b/drivers/usb/otg/gpio_vbus.c index 00e763ecb55a..1e6bd0347aff 100644 --- a/drivers/usb/otg/gpio_vbus.c +++ b/drivers/usb/otg/gpio_vbus.c @@ -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);