diff options
| author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2016-06-01 02:53:04 -0400 |
|---|---|---|
| committer | Rob Herring <robh@kernel.org> | 2016-06-23 16:00:36 -0400 |
| commit | 69d99e6c0d621febb2b6a22e27c4035da970e589 (patch) | |
| tree | 9d3e2b12734299b559e67b7d15fd33d4a22a04e8 | |
| parent | 2b658932356c54155dfec227316eaf81b3f17d83 (diff) | |
xtensa: Remove unnecessary of_platform_populate with default match table
After patch "of/platform: Add common method to populate default bus",
it is possible for arch code to remove unnecessary callers of
of_platform_populate with default match table.
Move of_clk_init() into time_init(), then drop xtensa_device_probe() fully.
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Rob Herring <robh@kernel.org>
| -rw-r--r-- | arch/xtensa/kernel/setup.c | 11 | ||||
| -rw-r--r-- | arch/xtensa/kernel/time.c | 2 |
2 files changed, 2 insertions, 11 deletions
diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index 9735691f37f1..18af563110a1 100644 --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c | |||
| @@ -22,10 +22,8 @@ | |||
| 22 | #include <linux/bootmem.h> | 22 | #include <linux/bootmem.h> |
| 23 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
| 24 | #include <linux/percpu.h> | 24 | #include <linux/percpu.h> |
| 25 | #include <linux/clk-provider.h> | ||
| 26 | #include <linux/cpu.h> | 25 | #include <linux/cpu.h> |
| 27 | #include <linux/of_fdt.h> | 26 | #include <linux/of_fdt.h> |
| 28 | #include <linux/of_platform.h> | ||
| 29 | 27 | ||
| 30 | #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE) | 28 | #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE) |
| 31 | # include <linux/console.h> | 29 | # include <linux/console.h> |
| @@ -252,15 +250,6 @@ void __init early_init_devtree(void *params) | |||
| 252 | strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE); | 250 | strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE); |
| 253 | } | 251 | } |
| 254 | 252 | ||
| 255 | static int __init xtensa_device_probe(void) | ||
| 256 | { | ||
| 257 | of_clk_init(NULL); | ||
| 258 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
| 259 | return 0; | ||
| 260 | } | ||
| 261 | |||
| 262 | device_initcall(xtensa_device_probe); | ||
| 263 | |||
| 264 | #endif /* CONFIG_OF */ | 253 | #endif /* CONFIG_OF */ |
| 265 | 254 | ||
| 266 | /* | 255 | /* |
diff --git a/arch/xtensa/kernel/time.c b/arch/xtensa/kernel/time.c index b9ad9feadc2d..6ec73c9f415d 100644 --- a/arch/xtensa/kernel/time.c +++ b/arch/xtensa/kernel/time.c | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | #include <linux/errno.h> | 15 | #include <linux/errno.h> |
| 16 | #include <linux/sched.h> | 16 | #include <linux/sched.h> |
| 17 | #include <linux/time.h> | 17 | #include <linux/time.h> |
| 18 | #include <linux/clk-provider.h> | ||
| 18 | #include <linux/clocksource.h> | 19 | #include <linux/clocksource.h> |
| 19 | #include <linux/clockchips.h> | 20 | #include <linux/clockchips.h> |
| 20 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
| @@ -148,6 +149,7 @@ void __init time_init(void) | |||
| 148 | local_timer_setup(0); | 149 | local_timer_setup(0); |
| 149 | setup_irq(this_cpu_ptr(&ccount_timer)->evt.irq, &timer_irqaction); | 150 | setup_irq(this_cpu_ptr(&ccount_timer)->evt.irq, &timer_irqaction); |
| 150 | sched_clock_register(ccount_sched_clock_read, 32, ccount_freq); | 151 | sched_clock_register(ccount_sched_clock_read, 32, ccount_freq); |
| 152 | of_clk_init(NULL); | ||
| 151 | clocksource_probe(); | 153 | clocksource_probe(); |
| 152 | } | 154 | } |
| 153 | 155 | ||
