diff options
author | Andrew Lunn <andrew@lunn.ch> | 2012-10-20 07:23:16 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2012-11-18 22:53:54 -0500 |
commit | 98adf932c0adc5e57257fe4230d89bda306a4037 (patch) | |
tree | cb7cb4a3b19a07e9e032570edc73b144e3cd6f31 /arch/arm | |
parent | d1c925b22141b841060d8c1e3a9f9949a77cdc05 (diff) |
ARM: Kirkwood: checkpatch cleanups
Mostly printk to pr_{err|info} changes and a few strings split over
multiple lines are combined.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-kirkwood/board-dt.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/common.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/common.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/cpuidle.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/dockstar-setup.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/mpp.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/netspace_v2-setup.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/openrd-setup.c | 14 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/pcie.c | 13 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/sheevaplug-setup.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/ts41x-setup.c | 3 |
11 files changed, 27 insertions, 31 deletions
diff --git a/arch/arm/mach-kirkwood/board-dt.c b/arch/arm/mach-kirkwood/board-dt.c index 6261e159f615..e75fbdb533de 100644 --- a/arch/arm/mach-kirkwood/board-dt.c +++ b/arch/arm/mach-kirkwood/board-dt.c | |||
@@ -98,7 +98,7 @@ static void __init kirkwood_dt_init(void) | |||
98 | kirkwood_auxdata_lookup, NULL); | 98 | kirkwood_auxdata_lookup, NULL); |
99 | } | 99 | } |
100 | 100 | ||
101 | static const char *kirkwood_dt_board_compat[] = { | 101 | static const char * const kirkwood_dt_board_compat[] = { |
102 | "globalscale,dreamplug", | 102 | "globalscale,dreamplug", |
103 | "dlink,dns-320", | 103 | "dlink,dns-320", |
104 | "dlink,dns-325", | 104 | "dlink,dns-325", |
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index 54e690dde9a0..f0fc25bd3ffe 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c | |||
@@ -18,10 +18,10 @@ | |||
18 | #include <linux/clk-provider.h> | 18 | #include <linux/clk-provider.h> |
19 | #include <linux/spinlock.h> | 19 | #include <linux/spinlock.h> |
20 | #include <linux/mv643xx_i2c.h> | 20 | #include <linux/mv643xx_i2c.h> |
21 | #include <linux/timex.h> | ||
22 | #include <linux/kexec.h> | ||
21 | #include <net/dsa.h> | 23 | #include <net/dsa.h> |
22 | #include <asm/page.h> | 24 | #include <asm/page.h> |
23 | #include <asm/timex.h> | ||
24 | #include <asm/kexec.h> | ||
25 | #include <asm/mach/map.h> | 25 | #include <asm/mach/map.h> |
26 | #include <asm/mach/time.h> | 26 | #include <asm/mach/time.h> |
27 | #include <mach/kirkwood.h> | 27 | #include <mach/kirkwood.h> |
@@ -646,8 +646,7 @@ void __init kirkwood_l2_init(void) | |||
646 | 646 | ||
647 | void __init kirkwood_init(void) | 647 | void __init kirkwood_init(void) |
648 | { | 648 | { |
649 | printk(KERN_INFO "Kirkwood: %s, TCLK=%d.\n", | 649 | pr_info("Kirkwood: %s, TCLK=%d.\n", kirkwood_id(), kirkwood_tclk); |
650 | kirkwood_id(), kirkwood_tclk); | ||
651 | 650 | ||
652 | /* | 651 | /* |
653 | * Disable propagation of mbus errors to the CPU local bus, | 652 | * Disable propagation of mbus errors to the CPU local bus, |
@@ -671,7 +670,7 @@ void __init kirkwood_init(void) | |||
671 | kirkwood_xor1_init(); | 670 | kirkwood_xor1_init(); |
672 | kirkwood_crypto_init(); | 671 | kirkwood_crypto_init(); |
673 | 672 | ||
674 | #ifdef CONFIG_KEXEC | 673 | #ifdef CONFIG_KEXEC |
675 | kexec_reinit = kirkwood_enable_pcie; | 674 | kexec_reinit = kirkwood_enable_pcie; |
676 | #endif | 675 | #endif |
677 | } | 676 | } |
diff --git a/arch/arm/mach-kirkwood/common.h b/arch/arm/mach-kirkwood/common.h index bcffd7ca1ca2..6088e9227889 100644 --- a/arch/arm/mach-kirkwood/common.h +++ b/arch/arm/mach-kirkwood/common.h | |||
@@ -47,7 +47,8 @@ void kirkwood_i2c_init(void); | |||
47 | void kirkwood_uart0_init(void); | 47 | void kirkwood_uart0_init(void); |
48 | void kirkwood_uart1_init(void); | 48 | void kirkwood_uart1_init(void); |
49 | void kirkwood_nand_init(struct mtd_partition *parts, int nr_parts, int delay); | 49 | void kirkwood_nand_init(struct mtd_partition *parts, int nr_parts, int delay); |
50 | void kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts, int (*dev_ready)(struct mtd_info *)); | 50 | void kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts, |
51 | int (*dev_ready)(struct mtd_info *)); | ||
51 | void kirkwood_audio_init(void); | 52 | void kirkwood_audio_init(void); |
52 | void kirkwood_restart(char, const char *); | 53 | void kirkwood_restart(char, const char *); |
53 | void kirkwood_clk_init(void); | 54 | void kirkwood_clk_init(void); |
diff --git a/arch/arm/mach-kirkwood/cpuidle.c b/arch/arm/mach-kirkwood/cpuidle.c index 0f1710941878..f7304670f2f8 100644 --- a/arch/arm/mach-kirkwood/cpuidle.c +++ b/arch/arm/mach-kirkwood/cpuidle.c | |||
@@ -64,7 +64,7 @@ static int kirkwood_init_cpuidle(void) | |||
64 | 64 | ||
65 | cpuidle_register_driver(&kirkwood_idle_driver); | 65 | cpuidle_register_driver(&kirkwood_idle_driver); |
66 | if (cpuidle_register_device(device)) { | 66 | if (cpuidle_register_device(device)) { |
67 | printk(KERN_ERR "kirkwood_init_cpuidle: Failed registering\n"); | 67 | pr_err("kirkwood_init_cpuidle: Failed registering\n"); |
68 | return -EIO; | 68 | return -EIO; |
69 | } | 69 | } |
70 | return 0; | 70 | return 0; |
diff --git a/arch/arm/mach-kirkwood/dockstar-setup.c b/arch/arm/mach-kirkwood/dockstar-setup.c index 23dcb19cc2a7..791a98fafa29 100644 --- a/arch/arm/mach-kirkwood/dockstar-setup.c +++ b/arch/arm/mach-kirkwood/dockstar-setup.c | |||
@@ -93,7 +93,7 @@ static void __init dockstar_init(void) | |||
93 | 93 | ||
94 | if (gpio_request(29, "USB Power Enable") != 0 || | 94 | if (gpio_request(29, "USB Power Enable") != 0 || |
95 | gpio_direction_output(29, 1) != 0) | 95 | gpio_direction_output(29, 1) != 0) |
96 | printk(KERN_ERR "can't set up GPIO 29 (USB Power Enable)\n"); | 96 | pr_err("can't set up GPIO 29 (USB Power Enable)\n"); |
97 | kirkwood_ehci_init(); | 97 | kirkwood_ehci_init(); |
98 | 98 | ||
99 | kirkwood_ge00_init(&dockstar_ge00_data); | 99 | kirkwood_ge00_init(&dockstar_ge00_data); |
diff --git a/arch/arm/mach-kirkwood/mpp.c b/arch/arm/mach-kirkwood/mpp.c index 0c6ad63f10c7..827cde42414f 100644 --- a/arch/arm/mach-kirkwood/mpp.c +++ b/arch/arm/mach-kirkwood/mpp.c | |||
@@ -30,8 +30,8 @@ static unsigned int __init kirkwood_variant(void) | |||
30 | if (dev == MV88F6180_DEV_ID) | 30 | if (dev == MV88F6180_DEV_ID) |
31 | return MPP_F6180_MASK; | 31 | return MPP_F6180_MASK; |
32 | 32 | ||
33 | printk(KERN_ERR "MPP setup: unknown kirkwood variant " | 33 | pr_err("MPP setup: unknown kirkwood variant (dev %#x rev %#x)\n", |
34 | "(dev %#x rev %#x)\n", dev, rev); | 34 | dev, rev); |
35 | return 0; | 35 | return 0; |
36 | } | 36 | } |
37 | 37 | ||
diff --git a/arch/arm/mach-kirkwood/netspace_v2-setup.c b/arch/arm/mach-kirkwood/netspace_v2-setup.c index 88b0788bacae..728e86d33f0c 100644 --- a/arch/arm/mach-kirkwood/netspace_v2-setup.c +++ b/arch/arm/mach-kirkwood/netspace_v2-setup.c | |||
@@ -79,7 +79,7 @@ static struct platform_device netspace_v2_gpio_buttons = { | |||
79 | .name = "gpio-keys", | 79 | .name = "gpio-keys", |
80 | .id = -1, | 80 | .id = -1, |
81 | .dev = { | 81 | .dev = { |
82 | .platform_data = &netspace_v2_button_data, | 82 | .platform_data = &netspace_v2_button_data, |
83 | }, | 83 | }, |
84 | }; | 84 | }; |
85 | 85 | ||
@@ -211,7 +211,7 @@ static unsigned int netspace_v2_mpp_config[] __initdata = { | |||
211 | MPP29_GPIO, /* Blue led (slow register) */ | 211 | MPP29_GPIO, /* Blue led (slow register) */ |
212 | MPP30_GPIO, /* Blue led (command register) */ | 212 | MPP30_GPIO, /* Blue led (command register) */ |
213 | MPP31_GPIO, /* Board power off */ | 213 | MPP31_GPIO, /* Board power off */ |
214 | MPP32_GPIO, /* Power button (0 = Released, 1 = Pushed) */ | 214 | MPP32_GPIO, /* Power button (0 = Released, 1 = Pushed) */ |
215 | MPP33_GPO, /* Fan speed (bit 2) */ | 215 | MPP33_GPO, /* Fan speed (bit 2) */ |
216 | 0 | 216 | 0 |
217 | }; | 217 | }; |
diff --git a/arch/arm/mach-kirkwood/openrd-setup.c b/arch/arm/mach-kirkwood/openrd-setup.c index 134ef50d58fc..7e81e9b586bf 100644 --- a/arch/arm/mach-kirkwood/openrd-setup.c +++ b/arch/arm/mach-kirkwood/openrd-setup.c | |||
@@ -121,14 +121,12 @@ static int __init uart1_mpp_config(void) | |||
121 | kirkwood_mpp_conf(openrd_uart1_mpp_config); | 121 | kirkwood_mpp_conf(openrd_uart1_mpp_config); |
122 | 122 | ||
123 | if (gpio_request(34, "SD_UART1_SEL")) { | 123 | if (gpio_request(34, "SD_UART1_SEL")) { |
124 | printk(KERN_ERR "GPIO request failed for SD/UART1 selection" | 124 | pr_err("GPIO request 34 failed for SD/UART1 selection\n"); |
125 | ", gpio: 34\n"); | ||
126 | return -EIO; | 125 | return -EIO; |
127 | } | 126 | } |
128 | 127 | ||
129 | if (gpio_request(28, "RS232_RS485_SEL")) { | 128 | if (gpio_request(28, "RS232_RS485_SEL")) { |
130 | printk(KERN_ERR "GPIO request failed for RS232/RS485 selection" | 129 | pr_err("GPIO request 28 failed for RS232/RS485 selection\n"); |
131 | ", gpio# 28\n"); | ||
132 | gpio_free(34); | 130 | gpio_free(34); |
133 | return -EIO; | 131 | return -EIO; |
134 | } | 132 | } |
@@ -185,15 +183,13 @@ static void __init openrd_init(void) | |||
185 | 183 | ||
186 | if (uart1 <= 0) { | 184 | if (uart1 <= 0) { |
187 | if (uart1 < 0) | 185 | if (uart1 < 0) |
188 | printk(KERN_ERR "Invalid kernel parameter to select " | 186 | pr_err("Invalid kernel parameter to select UART1. Defaulting to SD. ERROR CODE: %d\n", |
189 | "UART1. Defaulting to SD. ERROR CODE: %d\n", | 187 | uart1); |
190 | uart1); | ||
191 | 188 | ||
192 | /* Select SD | 189 | /* Select SD |
193 | * Pin # 34: 0 => UART1, 1 => SD */ | 190 | * Pin # 34: 0 => UART1, 1 => SD */ |
194 | if (gpio_request(34, "SD_UART1_SEL")) { | 191 | if (gpio_request(34, "SD_UART1_SEL")) { |
195 | printk(KERN_ERR "GPIO request failed for SD/UART1 " | 192 | pr_err("GPIO request 34 failed for SD/UART1 selection\n"); |
196 | "selection, gpio: 34\n"); | ||
197 | } else { | 193 | } else { |
198 | 194 | ||
199 | gpio_direction_output(34, 1); | 195 | gpio_direction_output(34, 1); |
diff --git a/arch/arm/mach-kirkwood/pcie.c b/arch/arm/mach-kirkwood/pcie.c index ec544918b12c..258581131670 100644 --- a/arch/arm/mach-kirkwood/pcie.c +++ b/arch/arm/mach-kirkwood/pcie.c | |||
@@ -26,7 +26,7 @@ static void kirkwood_enable_pcie_clk(const char *port) | |||
26 | 26 | ||
27 | clk = clk_get_sys("pcie", port); | 27 | clk = clk_get_sys("pcie", port); |
28 | if (IS_ERR(clk)) { | 28 | if (IS_ERR(clk)) { |
29 | printk(KERN_ERR "PCIE clock %s missing\n", port); | 29 | pr_err("PCIE clock %s missing\n", port); |
30 | return; | 30 | return; |
31 | } | 31 | } |
32 | clk_prepare_enable(clk); | 32 | clk_prepare_enable(clk); |
@@ -168,7 +168,7 @@ static int __init kirkwood_pcie_setup(int nr, struct pci_sys_data *sys) | |||
168 | return 0; | 168 | return 0; |
169 | 169 | ||
170 | index = pcie_port_map[nr]; | 170 | index = pcie_port_map[nr]; |
171 | printk(KERN_INFO "PCI: bus%d uses PCIe port %d\n", sys->busnr, index); | 171 | pr_info("PCI: bus%d uses PCIe port %d\n", sys->busnr, index); |
172 | 172 | ||
173 | pp = kzalloc(sizeof(*pp), GFP_KERNEL); | 173 | pp = kzalloc(sizeof(*pp), GFP_KERNEL); |
174 | if (!pp) | 174 | if (!pp) |
@@ -186,7 +186,8 @@ static int __init kirkwood_pcie_setup(int nr, struct pci_sys_data *sys) | |||
186 | case 1: | 186 | case 1: |
187 | kirkwood_enable_pcie_clk("1"); | 187 | kirkwood_enable_pcie_clk("1"); |
188 | pcie1_ioresources_init(pp); | 188 | pcie1_ioresources_init(pp); |
189 | pci_ioremap_io(SZ_64K * sys->busnr, KIRKWOOD_PCIE1_IO_PHYS_BASE); | 189 | pci_ioremap_io(SZ_64K * sys->busnr, |
190 | KIRKWOOD_PCIE1_IO_PHYS_BASE); | ||
190 | break; | 191 | break; |
191 | default: | 192 | default: |
192 | panic("PCIe setup: invalid controller %d", index); | 193 | panic("PCIe setup: invalid controller %d", index); |
@@ -257,13 +258,13 @@ static struct hw_pci kirkwood_pci __initdata = { | |||
257 | 258 | ||
258 | static void __init add_pcie_port(int index, void __iomem *base) | 259 | static void __init add_pcie_port(int index, void __iomem *base) |
259 | { | 260 | { |
260 | printk(KERN_INFO "Kirkwood PCIe port %d: ", index); | 261 | pr_info("Kirkwood PCIe port %d: ", index); |
261 | 262 | ||
262 | if (orion_pcie_link_up(base)) { | 263 | if (orion_pcie_link_up(base)) { |
263 | printk(KERN_INFO "link up\n"); | 264 | pr_info("link up\n"); |
264 | pcie_port_map[num_pcie_ports++] = index; | 265 | pcie_port_map[num_pcie_ports++] = index; |
265 | } else | 266 | } else |
266 | printk(KERN_INFO "link down, ignoring\n"); | 267 | pr_info("link down, ignoring\n"); |
267 | } | 268 | } |
268 | 269 | ||
269 | void __init kirkwood_pcie_init(unsigned int portmask) | 270 | void __init kirkwood_pcie_init(unsigned int portmask) |
diff --git a/arch/arm/mach-kirkwood/sheevaplug-setup.c b/arch/arm/mach-kirkwood/sheevaplug-setup.c index 28d0abaf4bd9..8a175948b28d 100644 --- a/arch/arm/mach-kirkwood/sheevaplug-setup.c +++ b/arch/arm/mach-kirkwood/sheevaplug-setup.c | |||
@@ -117,7 +117,7 @@ static void __init sheevaplug_init(void) | |||
117 | 117 | ||
118 | if (gpio_request(29, "USB Power Enable") != 0 || | 118 | if (gpio_request(29, "USB Power Enable") != 0 || |
119 | gpio_direction_output(29, 1) != 0) | 119 | gpio_direction_output(29, 1) != 0) |
120 | printk(KERN_ERR "can't set up GPIO 29 (USB Power Enable)\n"); | 120 | pr_err("can't set up GPIO 29 (USB Power Enable)\n"); |
121 | kirkwood_ehci_init(); | 121 | kirkwood_ehci_init(); |
122 | 122 | ||
123 | kirkwood_ge00_init(&sheevaplug_ge00_data); | 123 | kirkwood_ge00_init(&sheevaplug_ge00_data); |
diff --git a/arch/arm/mach-kirkwood/ts41x-setup.c b/arch/arm/mach-kirkwood/ts41x-setup.c index 367a9400f532..e4c61279ea86 100644 --- a/arch/arm/mach-kirkwood/ts41x-setup.c +++ b/arch/arm/mach-kirkwood/ts41x-setup.c | |||
@@ -170,8 +170,7 @@ static int __init ts41x_pci_init(void) | |||
170 | else | 170 | else |
171 | kirkwood_pcie_init(KW_PCIE0); | 171 | kirkwood_pcie_init(KW_PCIE0); |
172 | } | 172 | } |
173 | 173 | return 0; | |
174 | return 0; | ||
175 | } | 174 | } |
176 | subsys_initcall(ts41x_pci_init); | 175 | subsys_initcall(ts41x_pci_init); |
177 | 176 | ||