diff options
| author | Olof Johansson <olof@lixom.net> | 2014-02-21 19:33:50 -0500 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2014-02-21 19:33:50 -0500 |
| commit | dd67f8a05dcaeb818eb6dee4ab4ea0b2490b0efc (patch) | |
| tree | 5750416d2787d04a9926bb24f59c12db5685b5f0 | |
| parent | a671d255afb47bd2f83b94355b2848a0d46a1a92 (diff) | |
| parent | 08bb3adfd3adeb4653095e7968b6a46cef940404 (diff) | |
Merge tag 'mvebu-soc-3.15' of git://git.infradead.org/linux-mvebu into next/cleanup
Merge "mvebu soc changes for v3.15" from Jason Cooper:
- mvebu
- Makefile cleanup and remove map_io
- use of_find_matching_node_and_match
* tag 'mvebu-soc-3.15' of git://git.infradead.org/linux-mvebu:
ARM: mvebu: remove unneeded ->map_io field for Armada 370/XP
ARM: mvebu: make use of of_find_matching_node_and_match
ARM: mvebu: Makefile clean-up
Signed-off-by: Olof Johansson <olof@lixom.net>
| -rw-r--r-- | arch/arm/mach-mvebu/Makefile | 3 | ||||
| -rw-r--r-- | arch/arm/mach-mvebu/armada-370-xp.c | 6 | ||||
| -rw-r--r-- | arch/arm/mach-mvebu/system-controller.c | 9 |
3 files changed, 5 insertions, 13 deletions
diff --git a/arch/arm/mach-mvebu/Makefile b/arch/arm/mach-mvebu/Makefile index 878aebe98dcc..d99846103bbb 100644 --- a/arch/arm/mach-mvebu/Makefile +++ b/arch/arm/mach-mvebu/Makefile | |||
| @@ -3,8 +3,7 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \ | |||
| 3 | 3 | ||
| 4 | AFLAGS_coherency_ll.o := -Wa,-march=armv7-a | 4 | AFLAGS_coherency_ll.o := -Wa,-march=armv7-a |
| 5 | 5 | ||
| 6 | obj-y += system-controller.o mvebu-soc-id.o | 6 | obj-y += coherency.o coherency_ll.o pmsu.o system-controller.o mvebu-soc-id.o |
| 7 | obj-$(CONFIG_MACH_ARMADA_370_XP) += armada-370-xp.o | 7 | obj-$(CONFIG_MACH_ARMADA_370_XP) += armada-370-xp.o |
| 8 | obj-$(CONFIG_ARCH_MVEBU) += coherency.o coherency_ll.o pmsu.o | ||
| 9 | obj-$(CONFIG_SMP) += platsmp.o headsmp.o | 8 | obj-$(CONFIG_SMP) += platsmp.o headsmp.o |
| 10 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o | 9 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o |
diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c index f6c9d1d85c14..161cf2f54220 100644 --- a/arch/arm/mach-mvebu/armada-370-xp.c +++ b/arch/arm/mach-mvebu/armada-370-xp.c | |||
| @@ -31,11 +31,6 @@ | |||
| 31 | #include "coherency.h" | 31 | #include "coherency.h" |
| 32 | #include "mvebu-soc-id.h" | 32 | #include "mvebu-soc-id.h" |
| 33 | 33 | ||
| 34 | static void __init armada_370_xp_map_io(void) | ||
| 35 | { | ||
| 36 | debug_ll_io_init(); | ||
| 37 | } | ||
| 38 | |||
| 39 | static void __init armada_370_xp_timer_and_clk_init(void) | 34 | static void __init armada_370_xp_timer_and_clk_init(void) |
| 40 | { | 35 | { |
| 41 | of_clk_init(NULL); | 36 | of_clk_init(NULL); |
| @@ -90,7 +85,6 @@ static const char * const armada_370_xp_dt_compat[] = { | |||
| 90 | DT_MACHINE_START(ARMADA_XP_DT, "Marvell Armada 370/XP (Device Tree)") | 85 | DT_MACHINE_START(ARMADA_XP_DT, "Marvell Armada 370/XP (Device Tree)") |
| 91 | .smp = smp_ops(armada_xp_smp_ops), | 86 | .smp = smp_ops(armada_xp_smp_ops), |
| 92 | .init_machine = armada_370_xp_dt_init, | 87 | .init_machine = armada_370_xp_dt_init, |
| 93 | .map_io = armada_370_xp_map_io, | ||
| 94 | .init_time = armada_370_xp_timer_and_clk_init, | 88 | .init_time = armada_370_xp_timer_and_clk_init, |
| 95 | .restart = mvebu_restart, | 89 | .restart = mvebu_restart, |
| 96 | .dt_compat = armada_370_xp_dt_compat, | 90 | .dt_compat = armada_370_xp_dt_compat, |
diff --git a/arch/arm/mach-mvebu/system-controller.c b/arch/arm/mach-mvebu/system-controller.c index a7fb89a5b5d9..e6e300afe836 100644 --- a/arch/arm/mach-mvebu/system-controller.c +++ b/arch/arm/mach-mvebu/system-controller.c | |||
| @@ -54,7 +54,7 @@ static const struct mvebu_system_controller orion_system_controller = { | |||
| 54 | .system_soft_reset = 0x1, | 54 | .system_soft_reset = 0x1, |
| 55 | }; | 55 | }; |
| 56 | 56 | ||
| 57 | static struct of_device_id of_system_controller_table[] = { | 57 | static const struct of_device_id of_system_controller_table[] = { |
| 58 | { | 58 | { |
| 59 | .compatible = "marvell,orion-system-controller", | 59 | .compatible = "marvell,orion-system-controller", |
| 60 | .data = (void *) &orion_system_controller, | 60 | .data = (void *) &orion_system_controller, |
| @@ -90,13 +90,12 @@ void mvebu_restart(enum reboot_mode mode, const char *cmd) | |||
| 90 | 90 | ||
| 91 | static int __init mvebu_system_controller_init(void) | 91 | static int __init mvebu_system_controller_init(void) |
| 92 | { | 92 | { |
| 93 | const struct of_device_id *match; | ||
| 93 | struct device_node *np; | 94 | struct device_node *np; |
| 94 | 95 | ||
| 95 | np = of_find_matching_node(NULL, of_system_controller_table); | 96 | np = of_find_matching_node_and_match(NULL, of_system_controller_table, |
| 97 | &match); | ||
| 96 | if (np) { | 98 | if (np) { |
| 97 | const struct of_device_id *match = | ||
| 98 | of_match_node(of_system_controller_table, np); | ||
| 99 | BUG_ON(!match); | ||
| 100 | system_controller_base = of_iomap(np, 0); | 99 | system_controller_base = of_iomap(np, 0); |
| 101 | mvebu_sc = (struct mvebu_system_controller *)match->data; | 100 | mvebu_sc = (struct mvebu_system_controller *)match->data; |
| 102 | of_node_put(np); | 101 | of_node_put(np); |
