diff options
-rw-r--r-- | drivers/spi/spi-pl022.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 6209540e06a6..01e9aa45ea88 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c | |||
@@ -1019,11 +1019,11 @@ static int configure_dma(struct pl022 *pl022) | |||
1019 | pages = (pl022->cur_transfer->len >> PAGE_SHIFT) + 1; | 1019 | pages = (pl022->cur_transfer->len >> PAGE_SHIFT) + 1; |
1020 | dev_dbg(&pl022->adev->dev, "using %d pages for transfer\n", pages); | 1020 | dev_dbg(&pl022->adev->dev, "using %d pages for transfer\n", pages); |
1021 | 1021 | ||
1022 | ret = sg_alloc_table(&pl022->sgt_rx, pages, GFP_KERNEL); | 1022 | ret = sg_alloc_table(&pl022->sgt_rx, pages, GFP_ATOMIC); |
1023 | if (ret) | 1023 | if (ret) |
1024 | goto err_alloc_rx_sg; | 1024 | goto err_alloc_rx_sg; |
1025 | 1025 | ||
1026 | ret = sg_alloc_table(&pl022->sgt_tx, pages, GFP_KERNEL); | 1026 | ret = sg_alloc_table(&pl022->sgt_tx, pages, GFP_ATOMIC); |
1027 | if (ret) | 1027 | if (ret) |
1028 | goto err_alloc_tx_sg; | 1028 | goto err_alloc_tx_sg; |
1029 | 1029 | ||