aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-03-01 13:06:09 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-01 13:06:09 -0500
commit8098a7ef8946169cf8ffeb6f4d8130fc3651192e (patch)
tree90d2da5a7340a1cbaf5f779986d733a900b88f15 /arch
parent4805a1b0e6d74feb6428c05116a2886a076ee341 (diff)
parentd8fe989e7368a26e4baf9acb55524c71e5c3a117 (diff)
Merge branch 'for-linus' of git://repo.or.cz/cris-mirror
* 'for-linus' of git://repo.or.cz/cris-mirror: cris: Fixup last users of irq_chip->typename CRIS v32: Should index be positive?
Diffstat (limited to 'arch')
-rw-r--r--arch/cris/arch-v10/kernel/irq.c2
-rw-r--r--arch/cris/arch-v32/kernel/irq.c2
-rw-r--r--arch/cris/arch-v32/kernel/pinmux.c4
-rw-r--r--arch/cris/arch-v32/mach-a3/pinmux.c2
-rw-r--r--arch/cris/arch-v32/mach-fs/pinmux.c4
-rw-r--r--arch/cris/kernel/irq.c2
6 files changed, 8 insertions, 8 deletions
diff --git a/arch/cris/arch-v10/kernel/irq.c b/arch/cris/arch-v10/kernel/irq.c
index 5d75f77f9c73..1a61efc13982 100644
--- a/arch/cris/arch-v10/kernel/irq.c
+++ b/arch/cris/arch-v10/kernel/irq.c
@@ -133,7 +133,7 @@ static void end_crisv10_irq(unsigned int irq)
133} 133}
134 134
135static struct irq_chip crisv10_irq_type = { 135static struct irq_chip crisv10_irq_type = {
136 .typename = "CRISv10", 136 .name = "CRISv10",
137 .startup = startup_crisv10_irq, 137 .startup = startup_crisv10_irq,
138 .shutdown = shutdown_crisv10_irq, 138 .shutdown = shutdown_crisv10_irq,
139 .enable = enable_crisv10_irq, 139 .enable = enable_crisv10_irq,
diff --git a/arch/cris/arch-v32/kernel/irq.c b/arch/cris/arch-v32/kernel/irq.c
index 57668db25031..b6241198fb98 100644
--- a/arch/cris/arch-v32/kernel/irq.c
+++ b/arch/cris/arch-v32/kernel/irq.c
@@ -336,7 +336,7 @@ int set_affinity_crisv32_irq(unsigned int irq, const struct cpumask *dest)
336} 336}
337 337
338static struct irq_chip crisv32_irq_type = { 338static struct irq_chip crisv32_irq_type = {
339 .typename = "CRISv32", 339 .name = "CRISv32",
340 .startup = startup_crisv32_irq, 340 .startup = startup_crisv32_irq,
341 .shutdown = shutdown_crisv32_irq, 341 .shutdown = shutdown_crisv32_irq,
342 .enable = enable_crisv32_irq, 342 .enable = enable_crisv32_irq,
diff --git a/arch/cris/arch-v32/kernel/pinmux.c b/arch/cris/arch-v32/kernel/pinmux.c
index 6eb54ea1c976..f6f3637a4194 100644
--- a/arch/cris/arch-v32/kernel/pinmux.c
+++ b/arch/cris/arch-v32/kernel/pinmux.c
@@ -54,7 +54,7 @@ crisv32_pinmux_alloc(int port, int first_pin, int last_pin, enum pin_mode mode)
54 54
55 crisv32_pinmux_init(); 55 crisv32_pinmux_init();
56 56
57 if (port > PORTS) 57 if (port > PORTS || port < 0)
58 return -EINVAL; 58 return -EINVAL;
59 59
60 spin_lock_irqsave(&pinmux_lock, flags); 60 spin_lock_irqsave(&pinmux_lock, flags);
@@ -197,7 +197,7 @@ crisv32_pinmux_dealloc(int port, int first_pin, int last_pin)
197 197
198 crisv32_pinmux_init(); 198 crisv32_pinmux_init();
199 199
200 if (port > PORTS) 200 if (port > PORTS || port < 0)
201 return -EINVAL; 201 return -EINVAL;
202 202
203 spin_lock_irqsave(&pinmux_lock, flags); 203 spin_lock_irqsave(&pinmux_lock, flags);
diff --git a/arch/cris/arch-v32/mach-a3/pinmux.c b/arch/cris/arch-v32/mach-a3/pinmux.c
index 0a28c9bedfb7..18648ef2d874 100644
--- a/arch/cris/arch-v32/mach-a3/pinmux.c
+++ b/arch/cris/arch-v32/mach-a3/pinmux.c
@@ -242,7 +242,7 @@ crisv32_pinmux_dealloc(int port, int first_pin, int last_pin)
242 242
243 crisv32_pinmux_init(); 243 crisv32_pinmux_init();
244 244
245 if (port > PORTS) 245 if (port > PORTS || port < 0)
246 return -EINVAL; 246 return -EINVAL;
247 247
248 spin_lock_irqsave(&pinmux_lock, flags); 248 spin_lock_irqsave(&pinmux_lock, flags);
diff --git a/arch/cris/arch-v32/mach-fs/pinmux.c b/arch/cris/arch-v32/mach-fs/pinmux.c
index d722ad9ae626..38f29eec14a6 100644
--- a/arch/cris/arch-v32/mach-fs/pinmux.c
+++ b/arch/cris/arch-v32/mach-fs/pinmux.c
@@ -54,7 +54,7 @@ crisv32_pinmux_alloc(int port, int first_pin, int last_pin, enum pin_mode mode)
54 54
55 crisv32_pinmux_init(); 55 crisv32_pinmux_init();
56 56
57 if (port > PORTS) 57 if (port > PORTS || port < 0)
58 return -EINVAL; 58 return -EINVAL;
59 59
60 spin_lock_irqsave(&pinmux_lock, flags); 60 spin_lock_irqsave(&pinmux_lock, flags);
@@ -195,7 +195,7 @@ int crisv32_pinmux_dealloc(int port, int first_pin, int last_pin)
195 195
196 crisv32_pinmux_init(); 196 crisv32_pinmux_init();
197 197
198 if (port > PORTS) 198 if (port > PORTS || port < 0)
199 return -EINVAL; 199 return -EINVAL;
200 200
201 spin_lock_irqsave(&pinmux_lock, flags); 201 spin_lock_irqsave(&pinmux_lock, flags);
diff --git a/arch/cris/kernel/irq.c b/arch/cris/kernel/irq.c
index b5ce0724a88f..6d7b9eda4036 100644
--- a/arch/cris/kernel/irq.c
+++ b/arch/cris/kernel/irq.c
@@ -63,7 +63,7 @@ int show_interrupts(struct seq_file *p, void *v)
63 for_each_online_cpu(j) 63 for_each_online_cpu(j)
64 seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); 64 seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
65#endif 65#endif
66 seq_printf(p, " %14s", irq_desc[i].chip->typename); 66 seq_printf(p, " %14s", irq_desc[i].chip->name);
67 seq_printf(p, " %s", action->name); 67 seq_printf(p, " %s", action->name);
68 68
69 for (action=action->next; action; action = action->next) 69 for (action=action->next; action; action = action->next)