diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-04-09 09:37:28 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-04-09 09:37:28 -0400 |
commit | 3da254164501726d092c6e26103a7e1bf3971260 (patch) | |
tree | eec0e0ae14a3f1d7176de6206f4375027a2a9392 /arch/arm/mach-at91 | |
parent | 4909e13cd9d864f95f63d2d16489778fff483460 (diff) | |
parent | 3aa630b3e6be83c4e91a68537fe6edf80f8d295e (diff) |
Merge tag 'at91-cleanup' of git://github.com/at91linux/linux-at91 into next/cleanup
From Nicolas Ferre <nicolas.ferre@atmel.com>:
Trivial typos and some macros removal & modification
* tag 'at91-cleanup' of git://github.com/at91linux/linux-at91:
ARM: at91: remove trailing semicolon from macros
ARM: at91/setup: fix trivial typos
ARM: at91: remove unused dbgu_readl() macro
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/at91_rstc.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91_shdwc.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91x40_time.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/include/mach/at91_dbgu.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-at91/include/mach/at91_matrix.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/include/mach/at91_st.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/setup.c | 6 |
7 files changed, 8 insertions, 11 deletions
diff --git a/arch/arm/mach-at91/at91_rstc.h b/arch/arm/mach-at91/at91_rstc.h index 875fa336800b..a600e6992920 100644 --- a/arch/arm/mach-at91/at91_rstc.h +++ b/arch/arm/mach-at91/at91_rstc.h | |||
@@ -23,7 +23,7 @@ extern void __iomem *at91_rstc_base; | |||
23 | __raw_readl(at91_rstc_base + field) | 23 | __raw_readl(at91_rstc_base + field) |
24 | 24 | ||
25 | #define at91_rstc_write(field, value) \ | 25 | #define at91_rstc_write(field, value) \ |
26 | __raw_writel(value, at91_rstc_base + field); | 26 | __raw_writel(value, at91_rstc_base + field) |
27 | #else | 27 | #else |
28 | .extern at91_rstc_base | 28 | .extern at91_rstc_base |
29 | #endif | 29 | #endif |
diff --git a/arch/arm/mach-at91/at91_shdwc.h b/arch/arm/mach-at91/at91_shdwc.h index 60478ea8bd46..9e29f31ec9a6 100644 --- a/arch/arm/mach-at91/at91_shdwc.h +++ b/arch/arm/mach-at91/at91_shdwc.h | |||
@@ -23,7 +23,7 @@ extern void __iomem *at91_shdwc_base; | |||
23 | __raw_readl(at91_shdwc_base + field) | 23 | __raw_readl(at91_shdwc_base + field) |
24 | 24 | ||
25 | #define at91_shdwc_write(field, value) \ | 25 | #define at91_shdwc_write(field, value) \ |
26 | __raw_writel(value, at91_shdwc_base + field); | 26 | __raw_writel(value, at91_shdwc_base + field) |
27 | #endif | 27 | #endif |
28 | 28 | ||
29 | #define AT91_SHDW_CR 0x00 /* Shut Down Control Register */ | 29 | #define AT91_SHDW_CR 0x00 /* Shut Down Control Register */ |
diff --git a/arch/arm/mach-at91/at91x40_time.c b/arch/arm/mach-at91/at91x40_time.c index 0c07a4459cb2..2919eba41ff4 100644 --- a/arch/arm/mach-at91/at91x40_time.c +++ b/arch/arm/mach-at91/at91x40_time.c | |||
@@ -33,7 +33,7 @@ | |||
33 | __raw_readl(AT91_IO_P2V(AT91_TC) + field) | 33 | __raw_readl(AT91_IO_P2V(AT91_TC) + field) |
34 | 34 | ||
35 | #define at91_tc_write(field, value) \ | 35 | #define at91_tc_write(field, value) \ |
36 | __raw_writel(value, AT91_IO_P2V(AT91_TC) + field); | 36 | __raw_writel(value, AT91_IO_P2V(AT91_TC) + field) |
37 | 37 | ||
38 | /* | 38 | /* |
39 | * 3 counter/timer units present. | 39 | * 3 counter/timer units present. |
diff --git a/arch/arm/mach-at91/include/mach/at91_dbgu.h b/arch/arm/mach-at91/include/mach/at91_dbgu.h index 2aa0c5e13495..3b5948566e52 100644 --- a/arch/arm/mach-at91/include/mach/at91_dbgu.h +++ b/arch/arm/mach-at91/include/mach/at91_dbgu.h | |||
@@ -16,9 +16,6 @@ | |||
16 | #ifndef AT91_DBGU_H | 16 | #ifndef AT91_DBGU_H |
17 | #define AT91_DBGU_H | 17 | #define AT91_DBGU_H |
18 | 18 | ||
19 | #define dbgu_readl(dbgu, field) \ | ||
20 | __raw_readl(AT91_VA_BASE_SYS + dbgu + AT91_DBGU_ ## field) | ||
21 | |||
22 | #if !defined(CONFIG_ARCH_AT91X40) | 19 | #if !defined(CONFIG_ARCH_AT91X40) |
23 | #define AT91_DBGU_CR (0x00) /* Control Register */ | 20 | #define AT91_DBGU_CR (0x00) /* Control Register */ |
24 | #define AT91_DBGU_MR (0x04) /* Mode Register */ | 21 | #define AT91_DBGU_MR (0x04) /* Mode Register */ |
diff --git a/arch/arm/mach-at91/include/mach/at91_matrix.h b/arch/arm/mach-at91/include/mach/at91_matrix.h index 02fae9de746b..f8996c954131 100644 --- a/arch/arm/mach-at91/include/mach/at91_matrix.h +++ b/arch/arm/mach-at91/include/mach/at91_matrix.h | |||
@@ -14,7 +14,7 @@ extern void __iomem *at91_matrix_base; | |||
14 | __raw_readl(at91_matrix_base + field) | 14 | __raw_readl(at91_matrix_base + field) |
15 | 15 | ||
16 | #define at91_matrix_write(field, value) \ | 16 | #define at91_matrix_write(field, value) \ |
17 | __raw_writel(value, at91_matrix_base + field); | 17 | __raw_writel(value, at91_matrix_base + field) |
18 | 18 | ||
19 | #else | 19 | #else |
20 | .extern at91_matrix_base | 20 | .extern at91_matrix_base |
diff --git a/arch/arm/mach-at91/include/mach/at91_st.h b/arch/arm/mach-at91/include/mach/at91_st.h index 969aac27109f..67fdbd13c3ed 100644 --- a/arch/arm/mach-at91/include/mach/at91_st.h +++ b/arch/arm/mach-at91/include/mach/at91_st.h | |||
@@ -23,7 +23,7 @@ extern void __iomem *at91_st_base; | |||
23 | __raw_readl(at91_st_base + field) | 23 | __raw_readl(at91_st_base + field) |
24 | 24 | ||
25 | #define at91_st_write(field, value) \ | 25 | #define at91_st_write(field, value) \ |
26 | __raw_writel(value, at91_st_base + field); | 26 | __raw_writel(value, at91_st_base + field) |
27 | #else | 27 | #else |
28 | .extern at91_st_base | 28 | .extern at91_st_base |
29 | #endif | 29 | #endif |
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c index 6b4608d58da2..9e7c1e1528e5 100644 --- a/arch/arm/mach-at91/setup.c +++ b/arch/arm/mach-at91/setup.c | |||
@@ -353,7 +353,7 @@ static void at91_dt_ramc(void) | |||
353 | 353 | ||
354 | np = of_find_matching_node(NULL, ramc_ids); | 354 | np = of_find_matching_node(NULL, ramc_ids); |
355 | if (!np) | 355 | if (!np) |
356 | panic("unable to find compatible ram conroller node in dtb\n"); | 356 | panic("unable to find compatible ram controller node in dtb\n"); |
357 | 357 | ||
358 | at91_ramc_base[0] = of_iomap(np, 0); | 358 | at91_ramc_base[0] = of_iomap(np, 0); |
359 | if (!at91_ramc_base[0]) | 359 | if (!at91_ramc_base[0]) |
@@ -403,7 +403,7 @@ static void at91_dt_shdwc(void) | |||
403 | 403 | ||
404 | np = of_find_matching_node(NULL, shdwc_ids); | 404 | np = of_find_matching_node(NULL, shdwc_ids); |
405 | if (!np) { | 405 | if (!np) { |
406 | pr_debug("AT91: unable to find compatible shutdown (shdwc) conroller node in dtb\n"); | 406 | pr_debug("AT91: unable to find compatible shutdown (shdwc) controller node in dtb\n"); |
407 | return; | 407 | return; |
408 | } | 408 | } |
409 | 409 | ||
@@ -419,7 +419,7 @@ static void at91_dt_shdwc(void) | |||
419 | 419 | ||
420 | if (!of_property_read_u32(np, "atmel,wakeup-counter", ®)) { | 420 | if (!of_property_read_u32(np, "atmel,wakeup-counter", ®)) { |
421 | if (reg > AT91_SHDW_CPTWK0_MAX) { | 421 | if (reg > AT91_SHDW_CPTWK0_MAX) { |
422 | pr_warn("AT91: shdwc wakeup conter 0x%x > 0x%x reduce it to 0x%x\n", | 422 | pr_warn("AT91: shdwc wakeup counter 0x%x > 0x%x reduce it to 0x%x\n", |
423 | reg, AT91_SHDW_CPTWK0_MAX, AT91_SHDW_CPTWK0_MAX); | 423 | reg, AT91_SHDW_CPTWK0_MAX, AT91_SHDW_CPTWK0_MAX); |
424 | reg = AT91_SHDW_CPTWK0_MAX; | 424 | reg = AT91_SHDW_CPTWK0_MAX; |
425 | } | 425 | } |