Skip to content

Commit 829caee

Browse files
Rickard Strandqvistpaulburton
authored andcommitted
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: Rickard Strandqvist <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/8873/ Signed-off-by: Paul Burton <[email protected]> Cc: John Crispin <[email protected]> Cc: Thomas Bogendoerfer <[email protected]> Cc: [email protected] Cc: [email protected]
1 parent ff404a9 commit 829caee

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

arch/mips/mm/page.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -623,21 +623,6 @@ struct dmadscr {
623623
u64 pad_b;
624624
} ____cacheline_aligned_in_smp page_descr[DM_NUM_CHANNELS];
625625

626-
void sb1_dma_init(void)
627-
{
628-
int i;
629-
630-
for (i = 0; i < DM_NUM_CHANNELS; i++) {
631-
const u64 base_val = CPHYSADDR((unsigned long)&page_descr[i]) |
632-
V_DM_DSCR_BASE_RINGSZ(1);
633-
void *base_reg = IOADDR(A_DM_REGISTER(i, R_DM_DSCR_BASE));
634-
635-
__raw_writeq(base_val, base_reg);
636-
__raw_writeq(base_val | M_DM_DSCR_BASE_RESET, base_reg);
637-
__raw_writeq(base_val | M_DM_DSCR_BASE_ENABL, base_reg);
638-
}
639-
}
640-
641626
void clear_page(void *page)
642627
{
643628
u64 to_phys = CPHYSADDR((unsigned long)page);

0 commit comments

Comments
 (0)