sh/irq: Use accessor irq_data_get_node()
authorJiang Liu <jiang.liu@linux.intel.com>
Mon, 13 Jul 2015 20:51:20 +0000 (20:51 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 29 Jul 2015 08:08:06 +0000 (10:08 +0200)
Use accessor irq_data_get_node() to hide struct irq_data
implementation detail, so we can move irq_data->node to
irq_data_common once all usage sites are fixed.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Simon Horman <horms@verge.net.au>
Cc: Magnus Damm <magnus.damm@gmail.com>
Link: http://lkml.kernel.org/r/20150713151626.519112900@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/sh/kernel/irq.c

index eb10ff84015c4c92f28e03756f90859705802d70..8dc677cc136b65c064f13a912310f85d39eeea7a 100644 (file)
@@ -227,7 +227,7 @@ void migrate_irqs(void)
        for_each_active_irq(irq) {
                struct irq_data *data = irq_get_irq_data(irq);
 
-               if (data->node == cpu) {
+               if (irq_data_get_node(data) == cpu) {
                        unsigned int newcpu = cpumask_any_and(data->affinity,
                                                              cpu_online_mask);
                        if (newcpu >= nr_cpu_ids) {