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

MIPS: ath79: Allow using ath79_ddr_wb_flush() from drivers

Move the declaration of ath79_ddr_wb_flush() to asm/mach-ath79/ath79.h
to allow using it from drivers. This is needed to move the CPU IRQ
driver to drivers/irqchip.

Signed-off-by: Alban Bedel <albeu@free.fr>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Alexander Couzens <lynxis@fe80.eu>
Cc: Joel Porquet <joel@porquet.org>
Cc: Andrew Bresticker <abrestic@chromium.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/11502/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Alban Bedel and committed by
Ralf Baechle
c166fe78 f9a3e047

+1 -1
-1
arch/mips/ath79/common.h
··· 23 23 unsigned long ath79_get_sys_clk_rate(const char *id); 24 24 25 25 void ath79_ddr_ctrl_init(void); 26 - void ath79_ddr_wb_flush(unsigned int reg); 27 26 28 27 void ath79_gpio_init(void); 29 28
+1
arch/mips/include/asm/mach-ath79/ath79.h
··· 115 115 return soc_is_qca9556() || soc_is_qca9558(); 116 116 } 117 117 118 + void ath79_ddr_wb_flush(unsigned int reg); 118 119 void ath79_ddr_set_pci_windows(void); 119 120 120 121 extern void __iomem *ath79_pll_base;