diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-07-26 17:09:14 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-08-03 14:40:37 +0200 |
commit | 2e1b1d7063a35ab6cf9984f9d5bc29829e1e8788 (patch) | |
tree | 33e1d792afa2ac324d59e276abbfd146c7d40642 /drivers/parport/parport_gsc.h | |
parent | parisc: pci-dma: remove unused and dead EISA code and comment (diff) | |
download | linux-2e1b1d7063a35ab6cf9984f9d5bc29829e1e8788.tar.xz linux-2e1b1d7063a35ab6cf9984f9d5bc29829e1e8788.zip |
parport: gsc: remove DMA leftover code
This driver does not actually work with DMA mode, but still tries
to call ISA DMA interface functions that are stubbed out on
parisc, resulting in a W=1 build warning:
drivers/parport/parport_gsc.c: In function 'parport_remove_chip':
drivers/parport/parport_gsc.c:389:20: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
389 | free_dma(p->dma);
Remove the corresponding code as a prerequisite for turning on -Wempty-body
by default in all kernels.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/parport/parport_gsc.h')
-rw-r--r-- | drivers/parport/parport_gsc.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/parport/parport_gsc.h b/drivers/parport/parport_gsc.h index 9301217edf12..d447a568c257 100644 --- a/drivers/parport/parport_gsc.h +++ b/drivers/parport/parport_gsc.h @@ -63,8 +63,6 @@ struct parport_gsc_private { int writeIntrThreshold; /* buffer suitable for DMA, if DMA enabled */ - char *dma_buf; - dma_addr_t dma_handle; struct pci_dev *dev; }; @@ -199,9 +197,4 @@ extern void parport_gsc_inc_use_count(void); extern void parport_gsc_dec_use_count(void); -extern struct parport *parport_gsc_probe_port(unsigned long base, - unsigned long base_hi, - int irq, int dma, - struct parisc_device *padev); - #endif /* __DRIVERS_PARPORT_PARPORT_GSC_H */ |