diff mbox series

[-next] MIPS: Remove unused function dump_au1000_dma_channel() in dma.c

Message ID 20240814103553.2053235-1-cuigaosheng1@huawei.com (mailing list archive)
State Accepted
Commit c0bb40a2a401fed232d1e58e6a46d69a835fcf0a
Headers show
Series [-next] MIPS: Remove unused function dump_au1000_dma_channel() in dma.c | expand

Commit Message

cuigaosheng Aug. 14, 2024, 10:35 a.m. UTC
The dump_au1000_dma_channel() has not been used since
commit d56b9b9c464a ("[PATCH] The scheduled removal of some OSS
drivers"), so remove it.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 arch/mips/alchemy/common/dma.c                | 23 -------------------
 .../mips/include/asm/mach-au1x00/au1000_dma.h |  1 -
 2 files changed, 24 deletions(-)

Comments

Thomas Bogendoerfer Aug. 29, 2024, 8:46 a.m. UTC | #1
On Wed, Aug 14, 2024 at 06:35:53PM +0800, Gaosheng Cui wrote:
> The dump_au1000_dma_channel() has not been used since
> commit d56b9b9c464a ("[PATCH] The scheduled removal of some OSS
> drivers"), so remove it.
> 
> Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
> ---
>  arch/mips/alchemy/common/dma.c                | 23 -------------------
>  .../mips/include/asm/mach-au1x00/au1000_dma.h |  1 -
>  2 files changed, 24 deletions(-)

applied to mips-next.

Thomas.
diff mbox series

Patch

diff --git a/arch/mips/alchemy/common/dma.c b/arch/mips/alchemy/common/dma.c
index 973049b5bd61..44d8433b1f45 100644
--- a/arch/mips/alchemy/common/dma.c
+++ b/arch/mips/alchemy/common/dma.c
@@ -131,29 +131,6 @@  static const struct dma_dev dma_dev_table_bank2[DMA_NUM_DEV_BANK2] = {
 	{ AU1100_SD1_PHYS_ADDR + 0x04, DMA_DS | DMA_DW8 | DMA_DR }	/* coherent */
 };
 
-void dump_au1000_dma_channel(unsigned int dmanr)
-{
-	struct dma_chan *chan;
-
-	if (dmanr >= NUM_AU1000_DMA_CHANNELS)
-		return;
-	chan = &au1000_dma_table[dmanr];
-
-	printk(KERN_INFO "Au1000 DMA%d Register Dump:\n", dmanr);
-	printk(KERN_INFO "  mode = 0x%08x\n",
-	       __raw_readl(chan->io + DMA_MODE_SET));
-	printk(KERN_INFO "  addr = 0x%08x\n",
-	       __raw_readl(chan->io + DMA_PERIPHERAL_ADDR));
-	printk(KERN_INFO "  start0 = 0x%08x\n",
-	       __raw_readl(chan->io + DMA_BUFFER0_START));
-	printk(KERN_INFO "  start1 = 0x%08x\n",
-	       __raw_readl(chan->io + DMA_BUFFER1_START));
-	printk(KERN_INFO "  count0 = 0x%08x\n",
-	       __raw_readl(chan->io + DMA_BUFFER0_COUNT));
-	printk(KERN_INFO "  count1 = 0x%08x\n",
-	       __raw_readl(chan->io + DMA_BUFFER1_COUNT));
-}
-
 /*
  * Finds a free channel, and binds the requested device to it.
  * Returns the allocated channel number, or negative on error.
diff --git a/arch/mips/include/asm/mach-au1x00/au1000_dma.h b/arch/mips/include/asm/mach-au1x00/au1000_dma.h
index b82e513c8523..18c24051a1f2 100644
--- a/arch/mips/include/asm/mach-au1x00/au1000_dma.h
+++ b/arch/mips/include/asm/mach-au1x00/au1000_dma.h
@@ -124,7 +124,6 @@  extern int request_au1000_dma(int dev_id,
 extern void free_au1000_dma(unsigned int dmanr);
 extern int au1000_dma_read_proc(char *buf, char **start, off_t fpos,
 				int length, int *eof, void *data);
-extern void dump_au1000_dma_channel(unsigned int dmanr);
 extern spinlock_t au1000_dma_spin_lock;
 
 static inline struct dma_chan *get_dma_chan(unsigned int dmanr)