diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-09-26 02:32:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-26 11:48:54 -0400 |
commit | 53e62d3aaa60590d4a69b4e07c29f448b5151047 (patch) | |
tree | 995a43e1dd5760ca4a7a2fb180582d19da7afb01 | |
parent | cf134483b2cd657039b305777215c531a1009947 (diff) |
[PATCH] Alchemy: Delete unused pt_regs * argument from au1xxx_dbdma_chan_alloc
The third argument of au1xxx_dbdma_chan_alloc's callback function is not
used anywhere.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/mips/au1000/common/dbdma.c | 10 | ||||
-rw-r--r-- | drivers/ide/mips/au1xxx-ide.c | 4 | ||||
-rw-r--r-- | drivers/mmc/au1xmmc.c | 2 | ||||
-rw-r--r-- | include/asm-mips/mach-au1x00/au1xxx_dbdma.h | 6 | ||||
-rw-r--r-- | sound/oss/au1550_ac97.c | 6 |
5 files changed, 14 insertions, 14 deletions
diff --git a/arch/mips/au1000/common/dbdma.c b/arch/mips/au1000/common/dbdma.c index 98244d51c154..c4fae8ff4671 100644 --- a/arch/mips/au1000/common/dbdma.c +++ b/arch/mips/au1000/common/dbdma.c | |||
@@ -230,7 +230,7 @@ EXPORT_SYMBOL(au1xxx_ddma_add_device); | |||
230 | */ | 230 | */ |
231 | u32 | 231 | u32 |
232 | au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid, | 232 | au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid, |
233 | void (*callback)(int, void *, struct pt_regs *), void *callparam) | 233 | void (*callback)(int, void *), void *callparam) |
234 | { | 234 | { |
235 | unsigned long flags; | 235 | unsigned long flags; |
236 | u32 used, chan, rv; | 236 | u32 used, chan, rv; |
@@ -248,8 +248,10 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid, | |||
248 | au1xxx_dbdma_init(); | 248 | au1xxx_dbdma_init(); |
249 | dbdma_initialized = 1; | 249 | dbdma_initialized = 1; |
250 | 250 | ||
251 | if ((stp = find_dbdev_id(srcid)) == NULL) return 0; | 251 | if ((stp = find_dbdev_id(srcid)) == NULL) |
252 | if ((dtp = find_dbdev_id(destid)) == NULL) return 0; | 252 | return 0; |
253 | if ((dtp = find_dbdev_id(destid)) == NULL) | ||
254 | return 0; | ||
253 | 255 | ||
254 | used = 0; | 256 | used = 0; |
255 | rv = 0; | 257 | rv = 0; |
@@ -869,7 +871,7 @@ dbdma_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
869 | au_sync(); | 871 | au_sync(); |
870 | 872 | ||
871 | if (ctp->chan_callback) | 873 | if (ctp->chan_callback) |
872 | (ctp->chan_callback)(irq, ctp->chan_callparam, regs); | 874 | (ctp->chan_callback)(irq, ctp->chan_callparam); |
873 | 875 | ||
874 | ctp->cur_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); | 876 | ctp->cur_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); |
875 | return IRQ_RETVAL(1); | 877 | return IRQ_RETVAL(1); |
diff --git a/drivers/ide/mips/au1xxx-ide.c b/drivers/ide/mips/au1xxx-ide.c index 71f27e955d87..c7854ea57b52 100644 --- a/drivers/ide/mips/au1xxx-ide.c +++ b/drivers/ide/mips/au1xxx-ide.c | |||
@@ -476,13 +476,13 @@ static int auide_dma_lostirq(ide_drive_t *drive) | |||
476 | return 0; | 476 | return 0; |
477 | } | 477 | } |
478 | 478 | ||
479 | static void auide_ddma_tx_callback(int irq, void *param, struct pt_regs *regs) | 479 | static void auide_ddma_tx_callback(int irq, void *param) |
480 | { | 480 | { |
481 | _auide_hwif *ahwif = (_auide_hwif*)param; | 481 | _auide_hwif *ahwif = (_auide_hwif*)param; |
482 | ahwif->drive->waiting_for_dma = 0; | 482 | ahwif->drive->waiting_for_dma = 0; |
483 | } | 483 | } |
484 | 484 | ||
485 | static void auide_ddma_rx_callback(int irq, void *param, struct pt_regs *regs) | 485 | static void auide_ddma_rx_callback(int irq, void *param) |
486 | { | 486 | { |
487 | _auide_hwif *ahwif = (_auide_hwif*)param; | 487 | _auide_hwif *ahwif = (_auide_hwif*)param; |
488 | ahwif->drive->waiting_for_dma = 0; | 488 | ahwif->drive->waiting_for_dma = 0; |
diff --git a/drivers/mmc/au1xmmc.c b/drivers/mmc/au1xmmc.c index fb606165af3b..61268da13957 100644 --- a/drivers/mmc/au1xmmc.c +++ b/drivers/mmc/au1xmmc.c | |||
@@ -731,7 +731,7 @@ static void au1xmmc_set_ios(struct mmc_host* mmc, struct mmc_ios* ios) | |||
731 | } | 731 | } |
732 | } | 732 | } |
733 | 733 | ||
734 | static void au1xmmc_dma_callback(int irq, void *dev_id, struct pt_regs *regs) | 734 | static void au1xmmc_dma_callback(int irq, void *dev_id) |
735 | { | 735 | { |
736 | struct au1xmmc_host *host = (struct au1xmmc_host *) dev_id; | 736 | struct au1xmmc_host *host = (struct au1xmmc_host *) dev_id; |
737 | 737 | ||
diff --git a/include/asm-mips/mach-au1x00/au1xxx_dbdma.h b/include/asm-mips/mach-au1x00/au1xxx_dbdma.h index d5b38a247e5a..eeb0c3115b6a 100644 --- a/include/asm-mips/mach-au1x00/au1xxx_dbdma.h +++ b/include/asm-mips/mach-au1x00/au1xxx_dbdma.h | |||
@@ -316,7 +316,7 @@ typedef struct dbdma_chan_config { | |||
316 | au1x_ddma_desc_t *chan_desc_base; | 316 | au1x_ddma_desc_t *chan_desc_base; |
317 | au1x_ddma_desc_t *get_ptr, *put_ptr, *cur_ptr; | 317 | au1x_ddma_desc_t *get_ptr, *put_ptr, *cur_ptr; |
318 | void *chan_callparam; | 318 | void *chan_callparam; |
319 | void (*chan_callback)(int, void *, struct pt_regs *); | 319 | void (*chan_callback)(int, void *); |
320 | } chan_tab_t; | 320 | } chan_tab_t; |
321 | 321 | ||
322 | #define DEV_FLAGS_INUSE (1 << 0) | 322 | #define DEV_FLAGS_INUSE (1 << 0) |
@@ -334,8 +334,8 @@ typedef struct dbdma_chan_config { | |||
334 | * meaningful name. The 'callback' is called during dma completion | 334 | * meaningful name. The 'callback' is called during dma completion |
335 | * interrupt. | 335 | * interrupt. |
336 | */ | 336 | */ |
337 | u32 au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid, | 337 | extern u32 au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid, |
338 | void (*callback)(int, void *, struct pt_regs *), void *callparam); | 338 | void (*callback)(int, void *), void *callparam); |
339 | 339 | ||
340 | #define DBDMA_MEM_CHAN DSCR_CMD0_ALWAYS | 340 | #define DBDMA_MEM_CHAN DSCR_CMD0_ALWAYS |
341 | 341 | ||
diff --git a/sound/oss/au1550_ac97.c b/sound/oss/au1550_ac97.c index 4cdb86252d67..219795171c71 100644 --- a/sound/oss/au1550_ac97.c +++ b/sound/oss/au1550_ac97.c | |||
@@ -719,8 +719,7 @@ prog_dmabuf_dac(struct au1550_state *s) | |||
719 | } | 719 | } |
720 | 720 | ||
721 | 721 | ||
722 | static void | 722 | static void dac_dma_interrupt(int irq, void *dev_id) |
723 | dac_dma_interrupt(int irq, void *dev_id, struct pt_regs *regs) | ||
724 | { | 723 | { |
725 | struct au1550_state *s = (struct au1550_state *) dev_id; | 724 | struct au1550_state *s = (struct au1550_state *) dev_id; |
726 | struct dmabuf *db = &s->dma_dac; | 725 | struct dmabuf *db = &s->dma_dac; |
@@ -754,8 +753,7 @@ dac_dma_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
754 | } | 753 | } |
755 | 754 | ||
756 | 755 | ||
757 | static void | 756 | static void adc_dma_interrupt(int irq, void *dev_id) |
758 | adc_dma_interrupt(int irq, void *dev_id, struct pt_regs *regs) | ||
759 | { | 757 | { |
760 | struct au1550_state *s = (struct au1550_state *)dev_id; | 758 | struct au1550_state *s = (struct au1550_state *)dev_id; |
761 | struct dmabuf *dp = &s->dma_adc; | 759 | struct dmabuf *dp = &s->dma_adc; |