diff options
-rw-r--r-- | drivers/spi/spi-atmel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index f95da364c283..669470971023 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c | |||
@@ -1661,12 +1661,12 @@ static int atmel_spi_remove(struct platform_device *pdev) | |||
1661 | pm_runtime_get_sync(&pdev->dev); | 1661 | pm_runtime_get_sync(&pdev->dev); |
1662 | 1662 | ||
1663 | /* reset the hardware and block queue progress */ | 1663 | /* reset the hardware and block queue progress */ |
1664 | spin_lock_irq(&as->lock); | ||
1665 | if (as->use_dma) { | 1664 | if (as->use_dma) { |
1666 | atmel_spi_stop_dma(master); | 1665 | atmel_spi_stop_dma(master); |
1667 | atmel_spi_release_dma(master); | 1666 | atmel_spi_release_dma(master); |
1668 | } | 1667 | } |
1669 | 1668 | ||
1669 | spin_lock_irq(&as->lock); | ||
1670 | spi_writel(as, CR, SPI_BIT(SWRST)); | 1670 | spi_writel(as, CR, SPI_BIT(SWRST)); |
1671 | spi_writel(as, CR, SPI_BIT(SWRST)); /* AT91SAM9263 Rev B workaround */ | 1671 | spi_writel(as, CR, SPI_BIT(SWRST)); /* AT91SAM9263 Rev B workaround */ |
1672 | spi_readl(as, SR); | 1672 | spi_readl(as, SR); |