Merge branch 'stable/bug-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git...
[pandora-kernel.git] / arch / sh / drivers / push-switch.c
index 7b42c24..afc2455 100644 (file)
@@ -107,7 +107,7 @@ static int switch_drv_remove(struct platform_device *pdev)
                device_remove_file(&pdev->dev, &dev_attr_switch);
 
        platform_set_drvdata(pdev, NULL);
-       flush_scheduled_work();
+       flush_work_sync(&psw->work);
        del_timer_sync(&psw->debounce);
        free_irq(irq, pdev);