OSDN Git Service

Merge tag 'sh-for-v6.6-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubit...
[tomoyo/tomoyo-test1.git] / arch / sh / drivers / push-switch.c
index c95f48f..6ecba5f 100644 (file)
@@ -101,8 +101,8 @@ static int switch_drv_remove(struct platform_device *pdev)
                device_remove_file(&pdev->dev, &dev_attr_switch);
 
        platform_set_drvdata(pdev, NULL);
-       flush_work(&psw->work);
        timer_shutdown_sync(&psw->debounce);
+       flush_work(&psw->work);
        free_irq(irq, pdev);
 
        kfree(psw);