aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/setup.c
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2012-12-07 12:47:17 -0500
committerCatalin Marinas <catalin.marinas@arm.com>2013-01-22 12:51:00 -0500
commitd6bafb9b821a3a5ddeb600a9fd015085760d818e (patch)
treef53465c9797a5dcc2a44c9b8411c48756ec3929d /arch/arm64/kernel/setup.c
parentf1b99392caf120d7533da260318fae0eb5053737 (diff)
arm64: Populate the platform devices
This patch add a device_initcall() to populate the platform devices (of_default_bus_match_table). This allows SoC implementations that do not require earlier initcalls to avoid any platform-specific code under arch/arm64. GIC and generic timer initialisation is done via FDT and CPU notifiers independently of the SoC code. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm64/kernel/setup.c')
-rw-r--r--arch/arm64/kernel/setup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index 7665a9bfdb1e..894c1e5ed609 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -39,6 +39,7 @@
39#include <linux/proc_fs.h> 39#include <linux/proc_fs.h>
40#include <linux/memblock.h> 40#include <linux/memblock.h>
41#include <linux/of_fdt.h> 41#include <linux/of_fdt.h>
42#include <linux/of_platform.h>
42 43
43#include <asm/cputype.h> 44#include <asm/cputype.h>
44#include <asm/elf.h> 45#include <asm/elf.h>
@@ -289,6 +290,13 @@ static int __init topology_init(void)
289} 290}
290subsys_initcall(topology_init); 291subsys_initcall(topology_init);
291 292
293static int __init arm64_device_probe(void)
294{
295 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
296 return 0;
297}
298device_initcall(arm64_device_probe);
299
292static const char *hwcap_str[] = { 300static const char *hwcap_str[] = {
293 "fp", 301 "fp",
294 "asimd", 302 "asimd",