diff options
-rw-r--r-- | arch/arm/mach-integrator/common.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-integrator/core.c | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-integrator/common.h b/arch/arm/mach-integrator/common.h index 79197d8b34aa..72516658be1e 100644 --- a/arch/arm/mach-integrator/common.h +++ b/arch/arm/mach-integrator/common.h | |||
@@ -1,10 +1,5 @@ | |||
1 | #include <linux/amba/serial.h> | 1 | #include <linux/amba/serial.h> |
2 | #ifdef CONFIG_ARCH_INTEGRATOR_AP | ||
3 | extern struct amba_pl010_data ap_uart_data; | 2 | extern struct amba_pl010_data ap_uart_data; |
4 | #else | ||
5 | /* Not used without Integrator/AP support anyway */ | ||
6 | struct amba_pl010_data ap_uart_data {}; | ||
7 | #endif | ||
8 | void integrator_init_early(void); | 3 | void integrator_init_early(void); |
9 | int integrator_init(bool is_cp); | 4 | int integrator_init(bool is_cp); |
10 | void integrator_reserve(void); | 5 | void integrator_reserve(void); |
diff --git a/arch/arm/mach-integrator/core.c b/arch/arm/mach-integrator/core.c index 39c060f75e47..81461d218717 100644 --- a/arch/arm/mach-integrator/core.c +++ b/arch/arm/mach-integrator/core.c | |||
@@ -71,7 +71,7 @@ int __init integrator_init(bool is_cp) | |||
71 | * hard-code them. The Integator/CP and forward have proper cell IDs. | 71 | * hard-code them. The Integator/CP and forward have proper cell IDs. |
72 | * Else we leave them undefined to the bus driver can autoprobe them. | 72 | * Else we leave them undefined to the bus driver can autoprobe them. |
73 | */ | 73 | */ |
74 | if (!is_cp) { | 74 | if (!is_cp && IS_ENABLED(CONFIG_ARCH_INTEGRATOR_AP)) { |
75 | rtc_device.periphid = 0x00041030; | 75 | rtc_device.periphid = 0x00041030; |
76 | uart0_device.periphid = 0x00041010; | 76 | uart0_device.periphid = 0x00041010; |
77 | uart1_device.periphid = 0x00041010; | 77 | uart1_device.periphid = 0x00041010; |