diff options
Diffstat (limited to 'drivers/spi/spi_sh.c')
-rw-r--r-- | drivers/spi/spi_sh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_sh.c b/drivers/spi/spi_sh.c index 869a07d375d6..9eedd71ad898 100644 --- a/drivers/spi/spi_sh.c +++ b/drivers/spi/spi_sh.c | |||
@@ -427,10 +427,10 @@ static int __devexit spi_sh_remove(struct platform_device *pdev) | |||
427 | { | 427 | { |
428 | struct spi_sh_data *ss = dev_get_drvdata(&pdev->dev); | 428 | struct spi_sh_data *ss = dev_get_drvdata(&pdev->dev); |
429 | 429 | ||
430 | spi_unregister_master(ss->master); | ||
430 | destroy_workqueue(ss->workqueue); | 431 | destroy_workqueue(ss->workqueue); |
431 | free_irq(ss->irq, ss); | 432 | free_irq(ss->irq, ss); |
432 | iounmap(ss->addr); | 433 | iounmap(ss->addr); |
433 | spi_master_put(ss->master); | ||
434 | 434 | ||
435 | return 0; | 435 | return 0; |
436 | } | 436 | } |