aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r--arch/arm/mach-at91/Kconfig1
-rw-r--r--arch/arm/mach-at91/at91rm9200_time.c2
-rw-r--r--arch/arm/mach-at91/generic.h8
-rw-r--r--arch/arm/mach-at91/pm.c4
4 files changed, 7 insertions, 8 deletions
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index c6740e359a44..c74a44324e5b 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -64,7 +64,6 @@ config SOC_SAMA5D4
64 select SOC_SAMA5 64 select SOC_SAMA5
65 select CLKSRC_MMIO 65 select CLKSRC_MMIO
66 select CACHE_L2X0 66 select CACHE_L2X0
67 select CACHE_PL310
68 select HAVE_FB_ATMEL 67 select HAVE_FB_ATMEL
69 select HAVE_AT91_UTMI 68 select HAVE_AT91_UTMI
70 select HAVE_AT91_SMD 69 select HAVE_AT91_SMD
diff --git a/arch/arm/mach-at91/at91rm9200_time.c b/arch/arm/mach-at91/at91rm9200_time.c
index 51761f8927b7..b00d09555f2b 100644
--- a/arch/arm/mach-at91/at91rm9200_time.c
+++ b/arch/arm/mach-at91/at91rm9200_time.c
@@ -183,7 +183,7 @@ static struct clock_event_device clkevt = {
183void __iomem *at91_st_base; 183void __iomem *at91_st_base;
184EXPORT_SYMBOL_GPL(at91_st_base); 184EXPORT_SYMBOL_GPL(at91_st_base);
185 185
186static struct of_device_id at91rm9200_st_timer_ids[] = { 186static const struct of_device_id at91rm9200_st_timer_ids[] = {
187 { .compatible = "atmel,at91rm9200-st" }, 187 { .compatible = "atmel,at91rm9200-st" },
188 { /* sentinel */ } 188 { /* sentinel */ }
189}; 189};
diff --git a/arch/arm/mach-at91/generic.h b/arch/arm/mach-at91/generic.h
index a6e726a6e0b5..583369ffc284 100644
--- a/arch/arm/mach-at91/generic.h
+++ b/arch/arm/mach-at91/generic.h
@@ -35,10 +35,10 @@ extern void __init at91sam9260_pm_init(void);
35extern void __init at91sam9g45_pm_init(void); 35extern void __init at91sam9g45_pm_init(void);
36extern void __init at91sam9x5_pm_init(void); 36extern void __init at91sam9x5_pm_init(void);
37#else 37#else
38void __init at91rm9200_pm_init(void) { } 38static inline void __init at91rm9200_pm_init(void) { }
39void __init at91sam9260_pm_init(void) { } 39static inline void __init at91sam9260_pm_init(void) { }
40void __init at91sam9g45_pm_init(void) { } 40static inline void __init at91sam9g45_pm_init(void) { }
41void __init at91sam9x5_pm_init(void) { } 41static inline void __init at91sam9x5_pm_init(void) { }
42#endif 42#endif
43 43
44#endif /* _AT91_GENERIC_H */ 44#endif /* _AT91_GENERIC_H */
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
index af8d8afc2e12..5e34fb143309 100644
--- a/arch/arm/mach-at91/pm.c
+++ b/arch/arm/mach-at91/pm.c
@@ -226,7 +226,7 @@ void at91_pm_set_standby(void (*at91_standby)(void))
226 } 226 }
227} 227}
228 228
229static struct of_device_id ramc_ids[] = { 229static const struct of_device_id ramc_ids[] __initconst = {
230 { .compatible = "atmel,at91rm9200-sdramc", .data = at91rm9200_standby }, 230 { .compatible = "atmel,at91rm9200-sdramc", .data = at91rm9200_standby },
231 { .compatible = "atmel,at91sam9260-sdramc", .data = at91sam9_sdram_standby }, 231 { .compatible = "atmel,at91sam9260-sdramc", .data = at91sam9_sdram_standby },
232 { .compatible = "atmel,at91sam9g45-ddramc", .data = at91_ddr_standby }, 232 { .compatible = "atmel,at91sam9g45-ddramc", .data = at91_ddr_standby },
@@ -234,7 +234,7 @@ static struct of_device_id ramc_ids[] = {
234 { /*sentinel*/ } 234 { /*sentinel*/ }
235}; 235};
236 236
237static void at91_dt_ramc(void) 237static __init void at91_dt_ramc(void)
238{ 238{
239 struct device_node *np; 239 struct device_node *np;
240 const struct of_device_id *of_id; 240 const struct of_device_id *of_id;