MIPS: ath79: Allow using ath79_ddr_wb_flush() from drivers
authorAlban Bedel <albeu@free.fr>
Tue, 17 Nov 2015 19:34:55 +0000 (20:34 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 4 Jan 2016 08:42:25 +0000 (09:42 +0100)
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>
arch/mips/ath79/common.h
arch/mips/include/asm/mach-ath79/ath79.h

index ca7cc19adfea7f01154c55f44e47b5f863499843..870c6b2e97e835127dc88c6ca4bc4219faa44d92 100644 (file)
@@ -23,7 +23,6 @@ void ath79_clocks_init(void);
 unsigned long ath79_get_sys_clk_rate(const char *id);
 
 void ath79_ddr_ctrl_init(void);
-void ath79_ddr_wb_flush(unsigned int reg);
 
 void ath79_gpio_init(void);
 
index 4eee221b0cf0bce93fa7adb7b634c9feebcdf21d..2b3487213d1e932247077d8b3f67ba28612f2683 100644 (file)
@@ -115,6 +115,7 @@ static inline int soc_is_qca955x(void)
        return soc_is_qca9556() || soc_is_qca9558();
 }
 
+void ath79_ddr_wb_flush(unsigned int reg);
 void ath79_ddr_set_pci_windows(void);
 
 extern void __iomem *ath79_pll_base;