diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2010-05-23 15:55:47 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-05-24 15:40:11 -0400 |
commit | ff4659c1a7b207391a132bc3d11d007160a45147 (patch) | |
tree | 5228da08853444163bd0faf3b71e2e9ca0b60f68 /arch/arm/mach-shark/pci.c | |
parent | 9ffdfb47d7c13130db111a59a9885547333322e7 (diff) |
ARM: arch/arm/mach-shark/pci.c: Checkpatch cleanup
arch/arm/mach-shark/pci.c:19: ERROR: trailing statements should be on next line
arch/arm/mach-shark/pci.c:20: ERROR: trailing statements should be on next line
arch/arm/mach-shark/pci.c:21: ERROR: trailing statements should be on next line
arch/arm/mach-shark/pci.c:24: WARNING: externs should be avoided in .c files
arch/arm/mach-shark/pci.c:28: WARNING: please, no space before tabs
Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-shark/pci.c')
-rw-r--r-- | arch/arm/mach-shark/pci.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/arm/mach-shark/pci.c b/arch/arm/mach-shark/pci.c index 37a7112d4117..89d175ce74d2 100644 --- a/arch/arm/mach-shark/pci.c +++ b/arch/arm/mach-shark/pci.c | |||
@@ -16,16 +16,19 @@ | |||
16 | static int __init shark_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 16 | static int __init shark_map_irq(struct pci_dev *dev, u8 slot, u8 pin) |
17 | { | 17 | { |
18 | if (dev->bus->number == 0) | 18 | if (dev->bus->number == 0) |
19 | if (dev->devfn == 0) return 255; | 19 | if (dev->devfn == 0) |
20 | else return 11; | 20 | return 255; |
21 | else return 255; | 21 | else |
22 | return 11; | ||
23 | else | ||
24 | return 255; | ||
22 | } | 25 | } |
23 | 26 | ||
24 | extern void __init via82c505_preinit(void); | 27 | extern void __init via82c505_preinit(void); |
25 | 28 | ||
26 | static struct hw_pci shark_pci __initdata = { | 29 | static struct hw_pci shark_pci __initdata = { |
27 | .setup = via82c505_setup, | 30 | .setup = via82c505_setup, |
28 | .swizzle = pci_std_swizzle, | 31 | .swizzle = pci_std_swizzle, |
29 | .map_irq = shark_map_irq, | 32 | .map_irq = shark_map_irq, |
30 | .nr_controllers = 1, | 33 | .nr_controllers = 1, |
31 | .scan = via82c505_scan_bus, | 34 | .scan = via82c505_scan_bus, |