Commit 829caee7 authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Paul Burton

arch: mips: mm: page: Remove unused function

Remove the function sb1_dma_init() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Patchwork: https://patchwork.linux-mips.org/patch/8873/Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
Cc: John Crispin <blogic@openwrt.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
parent ff404a93
...@@ -623,21 +623,6 @@ struct dmadscr { ...@@ -623,21 +623,6 @@ struct dmadscr {
u64 pad_b; u64 pad_b;
} ____cacheline_aligned_in_smp page_descr[DM_NUM_CHANNELS]; } ____cacheline_aligned_in_smp page_descr[DM_NUM_CHANNELS];
void sb1_dma_init(void)
{
int i;
for (i = 0; i < DM_NUM_CHANNELS; i++) {
const u64 base_val = CPHYSADDR((unsigned long)&page_descr[i]) |
V_DM_DSCR_BASE_RINGSZ(1);
void *base_reg = IOADDR(A_DM_REGISTER(i, R_DM_DSCR_BASE));
__raw_writeq(base_val, base_reg);
__raw_writeq(base_val | M_DM_DSCR_BASE_RESET, base_reg);
__raw_writeq(base_val | M_DM_DSCR_BASE_ENABL, base_reg);
}
}
void clear_page(void *page) void clear_page(void *page)
{ {
u64 to_phys = CPHYSADDR((unsigned long)page); u64 to_phys = CPHYSADDR((unsigned long)page);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment