Skip to content

Commit afe8dc2

Browse files
abresticralfbaechle
authored andcommitted
MIPS: Rename mips_cpu_intc_init() -> mips_cpu_irq_of_init()
mips_cpu_intc_init() is used for DT-based initialization of the CPU IRQ domain. Give it a more appropriate name. Signed-off-by: Andrew Bresticker <abrestic@chromium.org> Reviewed-by: Qais Yousef <qais.yousef@imgtec.com> Tested-by: Qais Yousef <qais.yousef@imgtec.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Andrew Bresticker <abrestic@chromium.org> Cc: Jeffrey Deans <jeffrey.deans@imgtec.com> Cc: Markos Chandras <markos.chandras@imgtec.com> Cc: Paul Burton <paul.burton@imgtec.com> Cc: Qais Yousef <qais.yousef@imgtec.com> Cc: Jonas Gorski <jogo@openwrt.org> Cc: John Crispin <blogic@openwrt.org> Cc: David Daney <ddaney.cavm@gmail.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/7800/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 0f84c30 commit afe8dc2

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Documentation/devicetree/bindings/mips/cpu_irq.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIPS CPU interrupt controller
22

3-
On MIPS the mips_cpu_intc_init() helper can be used to initialize the 8 CPU
3+
On MIPS the mips_cpu_irq_of_init() helper can be used to initialize the 8 CPU
44
IRQs from a devicetree file and create a irq_domain for IRQ controller.
55

66
With the irq_domain in place we can describe how the 8 IRQs are wired to the
@@ -36,7 +36,7 @@ Example devicetree:
3636

3737
Example platform irq.c:
3838
static struct of_device_id __initdata of_irq_ids[] = {
39-
{ .compatible = "mti,cpu-interrupt-controller", .data = mips_cpu_intc_init },
39+
{ .compatible = "mti,cpu-interrupt-controller", .data = mips_cpu_irq_of_init },
4040
{ .compatible = "ralink,rt2880-intc", .data = intc_of_init },
4141
{},
4242
};

arch/mips/include/asm/irq_cpu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ extern void rm9k_cpu_irq_init(void);
1919

2020
#ifdef CONFIG_IRQ_DOMAIN
2121
struct device_node;
22-
extern int mips_cpu_intc_init(struct device_node *of_node,
23-
struct device_node *parent);
22+
extern int mips_cpu_irq_of_init(struct device_node *of_node,
23+
struct device_node *parent);
2424
#endif
2525

2626
#endif /* _ASM_IRQ_CPU_H */

arch/mips/kernel/irq_cpu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ void __init mips_cpu_irq_init(void)
135135
__mips_cpu_irq_init(NULL);
136136
}
137137

138-
int __init mips_cpu_intc_init(struct device_node *of_node,
139-
struct device_node *parent)
138+
int __init mips_cpu_irq_of_init(struct device_node *of_node,
139+
struct device_node *parent)
140140
{
141141
__mips_cpu_irq_init(of_node);
142142
return 0;

arch/mips/ralink/irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static int __init intc_of_init(struct device_node *node,
173173
}
174174

175175
static struct of_device_id __initdata of_irq_ids[] = {
176-
{ .compatible = "mti,cpu-interrupt-controller", .data = mips_cpu_intc_init },
176+
{ .compatible = "mti,cpu-interrupt-controller", .data = mips_cpu_irq_of_init },
177177
{ .compatible = "ralink,rt2880-intc", .data = intc_of_init },
178178
{},
179179
};

0 commit comments

Comments
 (0)