gve: Simplify code and axe the use of a deprecated API
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 1 Jul 2021 20:41:19 +0000 (22:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jul 2021 18:56:15 +0000 (11:56 -0700)
commitbde3c8ffdd4153a3e9f0b0d51d972b30113b35ac
tree89d73f27553c66cf2c8af09b6a5eaae830417983
parent633fa666401c42f9a106a509b7702c58c84524e2
gve: Simplify code and axe the use of a deprecated API

The wrappers in include/linux/pci-dma-compat.h should go away.

Replace 'pci_set_dma_mask/pci_set_consistent_dma_mask' by an equivalent
and less verbose 'dma_set_mask_and_coherent()' call.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Catherine Sullivan <csully@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve_main.c