Message ID | 1560159269-5564-1-git-send-email-periyasa@codeaurora.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 430b444a45f9a64864750e84c62005aaa26edac6 |
Delegated to: | Kalle Valo |
Headers | show |
Series | ath11k: Removed the redundant function call in ahb probe | expand |
Karthikeyan Periyasamy <periyasa@codeaurora.org> wrote: > Removed dma_set_mask() call in ath11k_ahb_probe() because > dma_set_mask_and_coherent() call will do both dma and coherent > mask set > > Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org> > Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Patch applied to ath11k-bringup branch of ath.git, thanks. 430b444a45f9 ath11k: Removed the redundant function call in ahb probe
diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/ath/ath11k/ahb.c index b97d4d3..c3e487a 100644 --- a/drivers/net/wireless/ath/ath11k/ahb.c +++ b/drivers/net/wireless/ath/ath11k/ahb.c @@ -945,12 +945,6 @@ static int ath11k_ahb_probe(struct platform_device *pdev) return PTR_ERR(mem); } - ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); - if (ret) { - dev_err(&pdev->dev, "failed to set 32-bit dma mask\n"); - return ret; - } - ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); if (ret) { dev_err(&pdev->dev, "failed to set 32-bit consistent dma\n");
Removed dma_set_mask() call in ath11k_ahb_probe() because dma_set_mask_and_coherent() call will do both dma and coherent mask set Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org> --- drivers/net/wireless/ath/ath11k/ahb.c | 6 ------ 1 file changed, 6 deletions(-)