summaryrefslogtreecommitdiff
path: root/arch/arm/mach-at91/at91sam9x5.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-08-16 17:36:55 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-10-13 09:09:28 +0800
commit8d39e0fd080fbc2287bca3f596741a38281634da (patch)
tree978c81e9174e9a9c61908588beeaca3865feabea /arch/arm/mach-at91/at91sam9x5.c
parent4d7127dace8cf4b05eb7c8c8531fc204fbb195f4 (diff)
arm: at91: use macro to declare soc boot data
Instead of check the pointer of the init function, check the new builtin bool to known if the soc is enabled. This is needed as with the switch to the pinctrl the init will be NULL on pure DT SoC. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9x5.c')
-rw-r--r--arch/arm/mach-at91/at91sam9x5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/at91sam9x5.c b/arch/arm/mach-at91/at91sam9x5.c
index e5035380dcbc..f31d3a065d56 100644
--- a/arch/arm/mach-at91/at91sam9x5.c
+++ b/arch/arm/mach-at91/at91sam9x5.c
@@ -323,8 +323,8 @@ void __init at91sam9x5_initialize(void)
* Interrupt initialization
* -------------------------------------------------------------------- */
-struct at91_init_soc __initdata at91sam9x5_soc = {
+AT91_SOC_START(sam9x5)
.map_io = at91sam9x5_map_io,
.register_clocks = at91sam9x5_register_clocks,
.init = at91sam9x5_initialize,
-};
+AT91_SOC_END