habanalabs: Use 'dma_set_mask_and_coherent()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 4 Jan 2021 15:08:46 +0000 (17:08 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 27 Jan 2021 19:03:50 +0000 (21:03 +0200)
commit825b30c4f37bd4a6846916a18379dcd211ea3fbf
tree90fe5b52af700c25d321612998886852c2efc516
parent423815bf02e257091d5337be5c63b57fc29e4254
habanalabs: Use 'dma_set_mask_and_coherent()'

Axe 'hl_pci_set_dma_mask()' and replace it with an equivalent
'dma_set_mask_and_coherent()' call.

This makes the code a bit less verbose.

It also removes an erroneous comment, because 'hl_pci_set_dma_mask()'
does not try to use a fall-back value.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/pci/pci.c