diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/pci.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 01b4edb00e9e..39e0b1cc2a12 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c | |||
@@ -936,8 +936,7 @@ static int ath10k_pci_diag_read_mem(struct ath10k *ar, u32 address, void *data, | |||
936 | */ | 936 | */ |
937 | alloc_nbytes = min_t(unsigned int, nbytes, DIAG_TRANSFER_LIMIT); | 937 | alloc_nbytes = min_t(unsigned int, nbytes, DIAG_TRANSFER_LIMIT); |
938 | 938 | ||
939 | data_buf = (unsigned char *)dma_zalloc_coherent(ar->dev, | 939 | data_buf = (unsigned char *)dma_alloc_coherent(ar->dev, alloc_nbytes, |
940 | alloc_nbytes, | ||
941 | &ce_data_base, | 940 | &ce_data_base, |
942 | GFP_ATOMIC); | 941 | GFP_ATOMIC); |
943 | 942 | ||