]> asedeno.scripts.mit.edu Git - linux.git/commit
qtnfmac: Tidy up DMA mask setting
authorRobin Murphy <robin.murphy@arm.com>
Mon, 24 Jul 2017 17:41:30 +0000 (18:41 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 3 Aug 2017 10:00:54 +0000 (13:00 +0300)
commit13cb8a5845ff1a1fe1644bbae9790b557ac69bdb
tree27f7aabf81106869cf3447172dc5112878d871ee
parent805b28c05c8e0496f679f180e2d276cce8b949b0
qtnfmac: Tidy up DMA mask setting

As the only caller of dma_supported() outside of DMA API internals, the
qtfnmac driver stands out and invites scrutiny. Thankfully, it's not
being used for evil, but it is entirely redundant, since it open-codes a
check that the DMA mask setting functions are going to perform anyway.
In fact, the whole qtnf_pcie_init_dma_mask() function is nothing more
than a rather long-winded implementation of dma_set_mask_and_coherent(),
so let's just use that directly.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c