diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-10-23 08:42:19 -0400 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-10-23 09:18:33 -0400 |
commit | e82c6106b04b85879d802bbbeaed30d9b10a92e2 (patch) | |
tree | 99758574cb3555001fff0cb3aebc0de654e7e9a3 /arch/avr32/mach-at32ap/include | |
parent | e3f91ca48162c3eb70450314a4d09384fccb92fa (diff) |
avr32: Fix GPIO initcall breakage
Add essential system devices, including GPIO controllers, automatically
at core_initcall time. This ensures that the devices are there when the
PIO driver gets initialized at postcore_initcall, fixing a bug exposed
by commit d6634db8fe1784d0a8e4e156970fec034708446e "avr32: Use
platform_driver_probe for pio platform driver".
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/mach-at32ap/include')
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/board.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/avr32/mach-at32ap/include/mach/board.h b/arch/avr32/mach-at32ap/include/mach/board.h index c48386d66bc3..aafaf7a78886 100644 --- a/arch/avr32/mach-at32ap/include/mach/board.h +++ b/arch/avr32/mach-at32ap/include/mach/board.h | |||
@@ -14,8 +14,14 @@ | |||
14 | */ | 14 | */ |
15 | extern unsigned long at32_board_osc_rates[]; | 15 | extern unsigned long at32_board_osc_rates[]; |
16 | 16 | ||
17 | /* Add basic devices: system manager, interrupt controller, portmuxes, etc. */ | 17 | /* |
18 | void at32_add_system_devices(void); | 18 | * This used to add essential system devices, but this is now done |
19 | * automatically. Please don't use it in new board code. | ||
20 | */ | ||
21 | static inline void __deprecated at32_add_system_devices(void) | ||
22 | { | ||
23 | |||
24 | } | ||
19 | 25 | ||
20 | #define ATMEL_MAX_UART 4 | 26 | #define ATMEL_MAX_UART 4 |
21 | extern struct platform_device *atmel_default_console_device; | 27 | extern struct platform_device *atmel_default_console_device; |