diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2010-09-29 19:46:32 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@stericsson.com> | 2010-12-08 13:14:06 +0100 |
commit | fbf1eadf950da1f5f5ed2e454d2f191f90fe1ebe (patch) | |
tree | a45df8b1d1e8e5bd76f524cff01dcf9e35d82f0a /arch/arm/mach-ux500/cpu.c | |
parent | 1bde668c8afa279d81b8f26b2120b906f38f7822 (diff) | |
download | linux-fbf1eadf950da1f5f5ed2e454d2f191f90fe1ebe.tar.gz linux-fbf1eadf950da1f5f5ed2e454d2f191f90fe1ebe.tar.bz2 linux-fbf1eadf950da1f5f5ed2e454d2f191f90fe1ebe.zip |
ux500: rework device registration
Change the Ux500 devices to be dynamically allocated and added by
calling functions instead of referencing structures, thereby allowing
5500 and other derivatives' support to be added without having to
duplicate structures, use fixup functions, or use compile-time macros.
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/cpu.c')
-rw-r--r-- | arch/arm/mach-ux500/cpu.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/mach-ux500/cpu.c b/arch/arm/mach-ux500/cpu.c index 608a1372b172..2bc0efbac584 100644 --- a/arch/arm/mach-ux500/cpu.c +++ b/arch/arm/mach-ux500/cpu.c @@ -6,7 +6,6 @@ */ #include <linux/platform_device.h> -#include <linux/amba/bus.h> #include <linux/io.h> #include <linux/clk.h> @@ -45,20 +44,11 @@ static struct map_desc ux500_io_desc[] __initdata = { __IO_DEV_DESC(UX500_BACKUPRAM0_BASE, SZ_8K), }; -static struct amba_device *ux500_amba_devs[] __initdata = { - &ux500_pl031_device, -}; - void __init ux500_map_io(void) { iotable_init(ux500_io_desc, ARRAY_SIZE(ux500_io_desc)); } -void __init ux500_init_devices(void) -{ - amba_add_devices(ux500_amba_devs, ARRAY_SIZE(ux500_amba_devs)); -} - void __init ux500_init_irq(void) { gic_dist_init(0, __io_address(UX500_GIC_DIST_BASE), 29); |