summaryrefslogtreecommitdiff
path: root/drivers/atm/fore200e.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-10-09 17:57:18 +0300
committerDavid S. Miller <davem@davemloft.net>2018-10-11 08:38:50 +0300
commit1335d6fd65da11e9576c0a5dc6b8d65aadbfc9b6 (patch)
tree4d77841efdc1ae3a9bcee0a39eb42418b4b9c275 /drivers/atm/fore200e.h
parentf3fadcb5644aa94c8197f1699798d95baa5d59a8 (diff)
downloadlinux-1335d6fd65da11e9576c0a5dc6b8d65aadbfc9b6.tar.xz
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>
Diffstat (limited to 'drivers/atm/fore200e.h')
-rw-r--r--drivers/atm/fore200e.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/atm/fore200e.h b/drivers/atm/fore200e.h
index f62fc9b85db0..caf0ea6a328a 100644
--- a/drivers/atm/fore200e.h
+++ b/drivers/atm/fore200e.h
@@ -805,8 +805,6 @@ typedef struct fore200e_bus {
int status_alignment; /* status words DMA alignment requirement */
u32 (*read)(volatile u32 __iomem *);
void (*write)(u32, volatile u32 __iomem *);
- int (*dma_chunk_alloc)(struct fore200e*, struct chunk*, int, int, int);
- void (*dma_chunk_free)(struct fore200e*, struct chunk*);
int (*configure)(struct fore200e*);
int (*map)(struct fore200e*);
void (*reset)(struct fore200e*);