diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-07-22 15:55:42 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-11-24 03:01:40 -0500 |
commit | d4fb5ebd83c7044ce0784e899271f6fcb42d0713 (patch) | |
tree | fca4a27cb58db825f50812fe882efc800871d4d8 /arch/powerpc/platforms/83xx/mpc830x_rdb.c | |
parent | c0019a4d6700e22409ffeaf6dbfa0b0700d128ca (diff) |
powerpc/83xx: consolidate init_IRQ functions
On mpc83xx platform nearly all _init_IRQ functions look alike. They either
just setup ipic, or setup ipic and QE PIC. Separate this to special functions
to be either referenced from ppc_md, or called from board file.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx/mpc830x_rdb.c')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc830x_rdb.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc830x_rdb.c b/arch/powerpc/platforms/83xx/mpc830x_rdb.c index d0c4e15b7794..b453c15d200a 100644 --- a/arch/powerpc/platforms/83xx/mpc830x_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc830x_rdb.c | |||
@@ -41,22 +41,6 @@ static void __init mpc830x_rdb_setup_arch(void) | |||
41 | mpc831x_usb_cfg(); | 41 | mpc831x_usb_cfg(); |
42 | } | 42 | } |
43 | 43 | ||
44 | static void __init mpc830x_rdb_init_IRQ(void) | ||
45 | { | ||
46 | struct device_node *np; | ||
47 | |||
48 | np = of_find_node_by_type(NULL, "ipic"); | ||
49 | if (!np) | ||
50 | return; | ||
51 | |||
52 | ipic_init(np, 0); | ||
53 | |||
54 | /* Initialize the default interrupt mapping priorities, | ||
55 | * in case the boot rom changed something on us. | ||
56 | */ | ||
57 | ipic_set_default_priority(); | ||
58 | } | ||
59 | |||
60 | static const char *board[] __initdata = { | 44 | static const char *board[] __initdata = { |
61 | "MPC8308RDB", | 45 | "MPC8308RDB", |
62 | "fsl,mpc8308rdb", | 46 | "fsl,mpc8308rdb", |
@@ -89,7 +73,7 @@ define_machine(mpc830x_rdb) { | |||
89 | .name = "MPC830x RDB", | 73 | .name = "MPC830x RDB", |
90 | .probe = mpc830x_rdb_probe, | 74 | .probe = mpc830x_rdb_probe, |
91 | .setup_arch = mpc830x_rdb_setup_arch, | 75 | .setup_arch = mpc830x_rdb_setup_arch, |
92 | .init_IRQ = mpc830x_rdb_init_IRQ, | 76 | .init_IRQ = mpc83xx_ipic_init_IRQ, |
93 | .get_irq = ipic_get_irq, | 77 | .get_irq = ipic_get_irq, |
94 | .restart = mpc83xx_restart, | 78 | .restart = mpc83xx_restart, |
95 | .time_init = mpc83xx_time_init, | 79 | .time_init = mpc83xx_time_init, |