X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=arch%2Fsh%2Fdrivers%2Fpush-switch.c;fp=arch%2Fsh%2Fdrivers%2Fpush-switch.c;h=6ecba5f521eb6c276a34961e8b10b3bcc5f14bfe;hb=6b8bb5b8d9b35fb43f0dbf9fd91b7d35e6232e08;hp=c95f48ff3f6fb4cee52a0ae0871619be47408f51;hpb=1b37a0a2d46f0c5fa5eee170ddeeb83342faa117;p=tomoyo%2Ftomoyo-test1.git diff --git a/arch/sh/drivers/push-switch.c b/arch/sh/drivers/push-switch.c index c95f48ff3f6f..6ecba5f521eb 100644 --- a/arch/sh/drivers/push-switch.c +++ b/arch/sh/drivers/push-switch.c @@ -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);