diff options
author | Mike Frysinger <michael.frysinger@analog.com> | 2007-07-12 10:58:21 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-07-12 10:58:21 -0400 |
commit | 1f83b8f148a1eb967d2a628cbb741cd56fb54572 (patch) | |
tree | 43b56238822ab35ec90a9ee9e9c014247950622f /arch/blackfin/mach-bf561 | |
parent | 669b792c77bbc30e9f4d9c95dbc918dc348c49c2 (diff) |
Blackfin arch: cleanup warnings from checkpatch -- no functional changes
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/mach-bf561')
-rw-r--r-- | arch/blackfin/mach-bf561/boards/cm_bf561.c | 32 | ||||
-rw-r--r-- | arch/blackfin/mach-bf561/boards/ezkit.c | 33 | ||||
-rw-r--r-- | arch/blackfin/mach-bf561/boards/generic_board.c | 6 | ||||
-rw-r--r-- | arch/blackfin/mach-bf561/boards/tepla.c | 6 | ||||
-rw-r--r-- | arch/blackfin/mach-bf561/coreb.c | 18 | ||||
-rw-r--r-- | arch/blackfin/mach-bf561/ints-priority.c | 2 |
6 files changed, 48 insertions, 49 deletions
diff --git a/arch/blackfin/mach-bf561/boards/cm_bf561.c b/arch/blackfin/mach-bf561/boards/cm_bf561.c index 3dc5c042048c..5b2b544529a1 100644 --- a/arch/blackfin/mach-bf561/boards/cm_bf561.c +++ b/arch/blackfin/mach-bf561/boards/cm_bf561.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <linux/spi/spi.h> | 34 | #include <linux/spi/spi.h> |
35 | #include <linux/spi/flash.h> | 35 | #include <linux/spi/flash.h> |
36 | #include <linux/usb_isp1362.h> | 36 | #include <linux/usb_isp1362.h> |
37 | #include <asm/irq.h> | 37 | #include <linux/irq.h> |
38 | #include <asm/bfin5xx_spi.h> | 38 | #include <asm/bfin5xx_spi.h> |
39 | 39 | ||
40 | /* | 40 | /* |
@@ -52,11 +52,11 @@ static struct mtd_partition bfin_spi_flash_partitions[] = { | |||
52 | .size = 0x00020000, | 52 | .size = 0x00020000, |
53 | .offset = 0, | 53 | .offset = 0, |
54 | .mask_flags = MTD_CAP_ROM | 54 | .mask_flags = MTD_CAP_ROM |
55 | },{ | 55 | }, { |
56 | .name = "kernel", | 56 | .name = "kernel", |
57 | .size = 0xe0000, | 57 | .size = 0xe0000, |
58 | .offset = 0x20000 | 58 | .offset = 0x20000 |
59 | },{ | 59 | }, { |
60 | .name = "file system", | 60 | .name = "file system", |
61 | .size = 0x700000, | 61 | .size = 0x700000, |
62 | .offset = 0x00100000, | 62 | .offset = 0x00100000, |
@@ -186,7 +186,7 @@ static struct resource smc91x_resources[] = { | |||
186 | .start = 0x28000300, | 186 | .start = 0x28000300, |
187 | .end = 0x28000300 + 16, | 187 | .end = 0x28000300 + 16, |
188 | .flags = IORESOURCE_MEM, | 188 | .flags = IORESOURCE_MEM, |
189 | },{ | 189 | }, { |
190 | .start = IRQ_PF0, | 190 | .start = IRQ_PF0, |
191 | .end = IRQ_PF0, | 191 | .end = IRQ_PF0, |
192 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, | 192 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, |
@@ -206,11 +206,11 @@ static struct resource isp1362_hcd_resources[] = { | |||
206 | .start = 0x24008000, | 206 | .start = 0x24008000, |
207 | .end = 0x24008000, | 207 | .end = 0x24008000, |
208 | .flags = IORESOURCE_MEM, | 208 | .flags = IORESOURCE_MEM, |
209 | },{ | 209 | }, { |
210 | .start = 0x24008004, | 210 | .start = 0x24008004, |
211 | .end = 0x24008004, | 211 | .end = 0x24008004, |
212 | .flags = IORESOURCE_MEM, | 212 | .flags = IORESOURCE_MEM, |
213 | },{ | 213 | }, { |
214 | .start = IRQ_PF47, | 214 | .start = IRQ_PF47, |
215 | .end = IRQ_PF47, | 215 | .end = IRQ_PF47, |
216 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, | 216 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, |
@@ -241,25 +241,25 @@ static struct platform_device isp1362_hcd_device = { | |||
241 | 241 | ||
242 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | 242 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) |
243 | static struct resource bfin_uart_resources[] = { | 243 | static struct resource bfin_uart_resources[] = { |
244 | { | 244 | { |
245 | .start = 0xFFC00400, | 245 | .start = 0xFFC00400, |
246 | .end = 0xFFC004FF, | 246 | .end = 0xFFC004FF, |
247 | .flags = IORESOURCE_MEM, | 247 | .flags = IORESOURCE_MEM, |
248 | }, | 248 | }, |
249 | }; | 249 | }; |
250 | 250 | ||
251 | static struct platform_device bfin_uart_device = { | 251 | static struct platform_device bfin_uart_device = { |
252 | .name = "bfin-uart", | 252 | .name = "bfin-uart", |
253 | .id = 1, | 253 | .id = 1, |
254 | .num_resources = ARRAY_SIZE(bfin_uart_resources), | 254 | .num_resources = ARRAY_SIZE(bfin_uart_resources), |
255 | .resource = bfin_uart_resources, | 255 | .resource = bfin_uart_resources, |
256 | }; | 256 | }; |
257 | #endif | 257 | #endif |
258 | 258 | ||
259 | static struct platform_device *cm_bf561_devices[] __initdata = { | 259 | static struct platform_device *cm_bf561_devices[] __initdata = { |
260 | 260 | ||
261 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | 261 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) |
262 | &bfin_uart_device, | 262 | &bfin_uart_device, |
263 | #endif | 263 | #endif |
264 | 264 | ||
265 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) | 265 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) |
diff --git a/arch/blackfin/mach-bf561/boards/ezkit.c b/arch/blackfin/mach-bf561/boards/ezkit.c index 9720b5c307ab..724191da20a2 100644 --- a/arch/blackfin/mach-bf561/boards/ezkit.c +++ b/arch/blackfin/mach-bf561/boards/ezkit.c | |||
@@ -30,10 +30,9 @@ | |||
30 | #include <linux/device.h> | 30 | #include <linux/device.h> |
31 | #include <linux/platform_device.h> | 31 | #include <linux/platform_device.h> |
32 | #include <linux/spi/spi.h> | 32 | #include <linux/spi/spi.h> |
33 | #include <asm/irq.h> | ||
34 | #include <asm/bfin5xx_spi.h> | ||
35 | #include <linux/interrupt.h> | ||
36 | #include <linux/irq.h> | 33 | #include <linux/irq.h> |
34 | #include <linux/interrupt.h> | ||
35 | #include <asm/bfin5xx_spi.h> | ||
37 | 36 | ||
38 | /* | 37 | /* |
39 | * Name the Board for the /proc/cpuinfo | 38 | * Name the Board for the /proc/cpuinfo |
@@ -45,13 +44,13 @@ char *bfin_board_name = "ADDS-BF561-EZKIT"; | |||
45 | 44 | ||
46 | #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) | 45 | #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) |
47 | static struct resource bfin_isp1761_resources[] = { | 46 | static struct resource bfin_isp1761_resources[] = { |
48 | [0] = { | 47 | { |
49 | .name = "isp1761-regs", | 48 | .name = "isp1761-regs", |
50 | .start = ISP1761_BASE + 0x00000000, | 49 | .start = ISP1761_BASE + 0x00000000, |
51 | .end = ISP1761_BASE + 0x000fffff, | 50 | .end = ISP1761_BASE + 0x000fffff, |
52 | .flags = IORESOURCE_MEM, | 51 | .flags = IORESOURCE_MEM, |
53 | }, | 52 | }, |
54 | [1] = { | 53 | { |
55 | .start = ISP1761_IRQ, | 54 | .start = ISP1761_IRQ, |
56 | .end = ISP1761_IRQ, | 55 | .end = ISP1761_IRQ, |
57 | .flags = IORESOURCE_IRQ, | 56 | .flags = IORESOURCE_IRQ, |
@@ -71,7 +70,7 @@ static struct platform_device *bfin_isp1761_devices[] = { | |||
71 | 70 | ||
72 | int __init bfin_isp1761_init(void) | 71 | int __init bfin_isp1761_init(void) |
73 | { | 72 | { |
74 | unsigned int num_devices=ARRAY_SIZE(bfin_isp1761_devices); | 73 | unsigned int num_devices = ARRAY_SIZE(bfin_isp1761_devices); |
75 | 74 | ||
76 | printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__); | 75 | printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__); |
77 | set_irq_type(ISP1761_IRQ, IRQF_TRIGGER_FALLING); | 76 | set_irq_type(ISP1761_IRQ, IRQF_TRIGGER_FALLING); |
@@ -98,7 +97,7 @@ static struct resource smc91x_resources[] = { | |||
98 | .start = 0x2C010300, | 97 | .start = 0x2C010300, |
99 | .end = 0x2C010300 + 16, | 98 | .end = 0x2C010300 + 16, |
100 | .flags = IORESOURCE_MEM, | 99 | .flags = IORESOURCE_MEM, |
101 | },{ | 100 | }, { |
102 | 101 | ||
103 | .start = IRQ_PF9, | 102 | .start = IRQ_PF9, |
104 | .end = IRQ_PF9, | 103 | .end = IRQ_PF9, |
@@ -116,18 +115,18 @@ static struct platform_device smc91x_device = { | |||
116 | 115 | ||
117 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | 116 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) |
118 | static struct resource bfin_uart_resources[] = { | 117 | static struct resource bfin_uart_resources[] = { |
119 | { | 118 | { |
120 | .start = 0xFFC00400, | 119 | .start = 0xFFC00400, |
121 | .end = 0xFFC004FF, | 120 | .end = 0xFFC004FF, |
122 | .flags = IORESOURCE_MEM, | 121 | .flags = IORESOURCE_MEM, |
123 | }, | 122 | }, |
124 | }; | 123 | }; |
125 | 124 | ||
126 | static struct platform_device bfin_uart_device = { | 125 | static struct platform_device bfin_uart_device = { |
127 | .name = "bfin-uart", | 126 | .name = "bfin-uart", |
128 | .id = 1, | 127 | .id = 1, |
129 | .num_resources = ARRAY_SIZE(bfin_uart_resources), | 128 | .num_resources = ARRAY_SIZE(bfin_uart_resources), |
130 | .resource = bfin_uart_resources, | 129 | .resource = bfin_uart_resources, |
131 | }; | 130 | }; |
132 | #endif | 131 | #endif |
133 | 132 | ||
@@ -176,7 +175,7 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
176 | &spi_bfin_master_device, | 175 | &spi_bfin_master_device, |
177 | #endif | 176 | #endif |
178 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | 177 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) |
179 | &bfin_uart_device, | 178 | &bfin_uart_device, |
180 | #endif | 179 | #endif |
181 | }; | 180 | }; |
182 | 181 | ||
diff --git a/arch/blackfin/mach-bf561/boards/generic_board.c b/arch/blackfin/mach-bf561/boards/generic_board.c index 585ecdd2f6a5..4dfea5da674c 100644 --- a/arch/blackfin/mach-bf561/boards/generic_board.c +++ b/arch/blackfin/mach-bf561/boards/generic_board.c | |||
@@ -30,7 +30,7 @@ | |||
30 | 30 | ||
31 | #include <linux/device.h> | 31 | #include <linux/device.h> |
32 | #include <linux/platform_device.h> | 32 | #include <linux/platform_device.h> |
33 | #include <asm/irq.h> | 33 | #include <linux/irq.h> |
34 | 34 | ||
35 | char *bfin_board_name = "UNKNOWN BOARD"; | 35 | char *bfin_board_name = "UNKNOWN BOARD"; |
36 | 36 | ||
@@ -43,11 +43,11 @@ static struct resource smc91x_resources[] = { | |||
43 | .start = 0x2C010300, | 43 | .start = 0x2C010300, |
44 | .end = 0x2C010300 + 16, | 44 | .end = 0x2C010300 + 16, |
45 | .flags = IORESOURCE_MEM, | 45 | .flags = IORESOURCE_MEM, |
46 | },{ | 46 | }, { |
47 | .start = IRQ_PROG_INTB, | 47 | .start = IRQ_PROG_INTB, |
48 | .end = IRQ_PROG_INTB, | 48 | .end = IRQ_PROG_INTB, |
49 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, | 49 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, |
50 | },{ | 50 | }, { |
51 | /* | 51 | /* |
52 | * denotes the flag pin and is used directly if | 52 | * denotes the flag pin and is used directly if |
53 | * CONFIG_IRQCHIP_DEMUX_GPIO is defined. | 53 | * CONFIG_IRQCHIP_DEMUX_GPIO is defined. |
diff --git a/arch/blackfin/mach-bf561/boards/tepla.c b/arch/blackfin/mach-bf561/boards/tepla.c index db308c7ccabb..c442eb23db5e 100644 --- a/arch/blackfin/mach-bf561/boards/tepla.c +++ b/arch/blackfin/mach-bf561/boards/tepla.c | |||
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | #include <linux/device.h> | 15 | #include <linux/device.h> |
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <asm/irq.h> | 17 | #include <linux/irq.h> |
18 | 18 | ||
19 | char *bfin_board_name = "Tepla-BF561"; | 19 | char *bfin_board_name = "Tepla-BF561"; |
20 | 20 | ||
@@ -26,11 +26,11 @@ static struct resource smc91x_resources[] = { | |||
26 | .start = 0x2C000300, | 26 | .start = 0x2C000300, |
27 | .end = 0x2C000320, | 27 | .end = 0x2C000320, |
28 | .flags = IORESOURCE_MEM, | 28 | .flags = IORESOURCE_MEM, |
29 | },{ | 29 | }, { |
30 | .start = IRQ_PROG_INTB, | 30 | .start = IRQ_PROG_INTB, |
31 | .end = IRQ_PROG_INTB, | 31 | .end = IRQ_PROG_INTB, |
32 | .flags = IORESOURCE_IRQ|IORESOURCE_IRQ_HIGHLEVEL, | 32 | .flags = IORESOURCE_IRQ|IORESOURCE_IRQ_HIGHLEVEL, |
33 | },{ | 33 | }, { |
34 | /* | 34 | /* |
35 | * denotes the flag pin and is used directly if | 35 | * denotes the flag pin and is used directly if |
36 | * CONFIG_IRQCHIP_DEMUX_GPIO is defined. | 36 | * CONFIG_IRQCHIP_DEMUX_GPIO is defined. |
diff --git a/arch/blackfin/mach-bf561/coreb.c b/arch/blackfin/mach-bf561/coreb.c index b28582fe083c..5d1d21b4c2a7 100644 --- a/arch/blackfin/mach-bf561/coreb.c +++ b/arch/blackfin/mach-bf561/coreb.c | |||
@@ -32,8 +32,8 @@ | |||
32 | #include <linux/device.h> | 32 | #include <linux/device.h> |
33 | #include <linux/ioport.h> | 33 | #include <linux/ioport.h> |
34 | #include <linux/module.h> | 34 | #include <linux/module.h> |
35 | #include <linux/uaccess.h> | ||
35 | #include <asm/dma.h> | 36 | #include <asm/dma.h> |
36 | #include <asm/uaccess.h> | ||
37 | 37 | ||
38 | #define MODULE_VER "v0.1" | 38 | #define MODULE_VER "v0.1" |
39 | 39 | ||
@@ -202,7 +202,7 @@ static int coreb_open(struct inode *inode, struct file *file) | |||
202 | spin_unlock_irq(&coreb_lock); | 202 | spin_unlock_irq(&coreb_lock); |
203 | return 0; | 203 | return 0; |
204 | 204 | ||
205 | out_busy: | 205 | out_busy: |
206 | spin_unlock_irq(&coreb_lock); | 206 | spin_unlock_irq(&coreb_lock); |
207 | return -EBUSY; | 207 | return -EBUSY; |
208 | } | 208 | } |
@@ -365,19 +365,19 @@ int __init bf561_coreb_init(void) | |||
365 | printk(KERN_INFO "BF561 Core B driver %s initialized.\n", MODULE_VER); | 365 | printk(KERN_INFO "BF561 Core B driver %s initialized.\n", MODULE_VER); |
366 | return 0; | 366 | return 0; |
367 | 367 | ||
368 | release_dma_src: | 368 | release_dma_src: |
369 | free_dma(CH_MEM_STREAM2_SRC); | 369 | free_dma(CH_MEM_STREAM2_SRC); |
370 | release_dma_dest: | 370 | release_dma_dest: |
371 | free_dma(CH_MEM_STREAM2_DEST); | 371 | free_dma(CH_MEM_STREAM2_DEST); |
372 | release_data_a_sram: | 372 | release_data_a_sram: |
373 | release_mem_region(0xff400000, 0x8000); | 373 | release_mem_region(0xff400000, 0x8000); |
374 | release_data_b_sram: | 374 | release_data_b_sram: |
375 | release_mem_region(0xff500000, 0x8000); | 375 | release_mem_region(0xff500000, 0x8000); |
376 | release_instruction_b_sram: | 376 | release_instruction_b_sram: |
377 | release_mem_region(0xff610000, 0x4000); | 377 | release_mem_region(0xff610000, 0x4000); |
378 | release_instruction_a_sram: | 378 | release_instruction_a_sram: |
379 | release_mem_region(0xff600000, 0x4000); | 379 | release_mem_region(0xff600000, 0x4000); |
380 | exit: | 380 | exit: |
381 | return -ENOMEM; | 381 | return -ENOMEM; |
382 | } | 382 | } |
383 | 383 | ||
diff --git a/arch/blackfin/mach-bf561/ints-priority.c b/arch/blackfin/mach-bf561/ints-priority.c index 86e3b0ee93f4..09b541b0f7c2 100644 --- a/arch/blackfin/mach-bf561/ints-priority.c +++ b/arch/blackfin/mach-bf561/ints-priority.c | |||
@@ -28,8 +28,8 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | #include <linux/module.h> | 30 | #include <linux/module.h> |
31 | #include <linux/irq.h> | ||
31 | #include <asm/blackfin.h> | 32 | #include <asm/blackfin.h> |
32 | #include <asm/irq.h> | ||
33 | 33 | ||
34 | void program_IAR(void) | 34 | void program_IAR(void) |
35 | { | 35 | { |