aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/proc.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-10 16:37:41 -0500
committerThomas Gleixner <tglx@linutronix.de>2011-02-19 06:58:20 -0500
commitbce43032ad79fae0ce5b6174ce1321e643ceb54b (patch)
tree1a4725216ef2d008cbb6a23966785b58088ebf93 /kernel/irq/proc.c
parenta005677b3dd05decdd8880cf3044ae709856f58f (diff)
genirq: Reuse existing can set affinty check
Add a !desc check while at it. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/proc.c')
-rw-r--r--kernel/irq/proc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c
index afe4e680314..4cc2e5ed0be 100644
--- a/kernel/irq/proc.c
+++ b/kernel/irq/proc.c
@@ -66,8 +66,7 @@ static ssize_t irq_affinity_proc_write(struct file *file,
66 cpumask_var_t new_value; 66 cpumask_var_t new_value;
67 int err; 67 int err;
68 68
69 if (!irq_to_desc(irq)->irq_data.chip->irq_set_affinity || no_irq_affinity || 69 if (!irq_can_set_affinity(irq) || no_irq_affinity)
70 irq_balancing_disabled(irq))
71 return -EIO; 70 return -EIO;
72 71
73 if (!alloc_cpumask_var(&new_value, GFP_KERNEL)) 72 if (!alloc_cpumask_var(&new_value, GFP_KERNEL))