Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Remove unused function dump_au1000_dma_channel() in dma.c

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>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Gaosheng Cui and committed by
Thomas Bogendoerfer
c0bb40a2 9fd2ba4b

-24
-23
arch/mips/alchemy/common/dma.c
··· 131 131 { AU1100_SD1_PHYS_ADDR + 0x04, DMA_DS | DMA_DW8 | DMA_DR } /* coherent */ 132 132 }; 133 133 134 - void dump_au1000_dma_channel(unsigned int dmanr) 135 - { 136 - struct dma_chan *chan; 137 - 138 - if (dmanr >= NUM_AU1000_DMA_CHANNELS) 139 - return; 140 - chan = &au1000_dma_table[dmanr]; 141 - 142 - printk(KERN_INFO "Au1000 DMA%d Register Dump:\n", dmanr); 143 - printk(KERN_INFO " mode = 0x%08x\n", 144 - __raw_readl(chan->io + DMA_MODE_SET)); 145 - printk(KERN_INFO " addr = 0x%08x\n", 146 - __raw_readl(chan->io + DMA_PERIPHERAL_ADDR)); 147 - printk(KERN_INFO " start0 = 0x%08x\n", 148 - __raw_readl(chan->io + DMA_BUFFER0_START)); 149 - printk(KERN_INFO " start1 = 0x%08x\n", 150 - __raw_readl(chan->io + DMA_BUFFER1_START)); 151 - printk(KERN_INFO " count0 = 0x%08x\n", 152 - __raw_readl(chan->io + DMA_BUFFER0_COUNT)); 153 - printk(KERN_INFO " count1 = 0x%08x\n", 154 - __raw_readl(chan->io + DMA_BUFFER1_COUNT)); 155 - } 156 - 157 134 /* 158 135 * Finds a free channel, and binds the requested device to it. 159 136 * Returns the allocated channel number, or negative on error.
-1
arch/mips/include/asm/mach-au1x00/au1000_dma.h
··· 124 124 extern void free_au1000_dma(unsigned int dmanr); 125 125 extern int au1000_dma_read_proc(char *buf, char **start, off_t fpos, 126 126 int length, int *eof, void *data); 127 - extern void dump_au1000_dma_channel(unsigned int dmanr); 128 127 extern spinlock_t au1000_dma_spin_lock; 129 128 130 129 static inline struct dma_chan *get_dma_chan(unsigned int dmanr)