OSDN Git Service

fore200e: devirtualize dma alloc calls
authorChristoph Hellwig <hch@lst.de>
Tue, 9 Oct 2018 14:57:18 +0000 (16:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 05:38:50 +0000 (22:38 -0700)
commit1335d6fd65da11e9576c0a5dc6b8d65aadbfc9b6
tree4d77841efdc1ae3a9bcee0a39eb42418b4b9c275
parentf3fadcb5644aa94c8197f1699798d95baa5d59a8
fore200e: devirtualize dma alloc calls

There is no need for an indirection before calling the dma alloc
routines now that we store a struct device in struct fore200e.

Also remove the pointless GFP_ATOMIC for the sbus case, and fix the
up the error handling by removing the 0 dma_addr test - some iommus
can return 0 as a perfectly valid bus address.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/fore200e.c
drivers/atm/fore200e.h