sparc/irq: Use helper irq_data_get_irq_handler_data()
Use helper function irq_data_get_irq_handler_data() to hide irq_desc implementation details. This allows to move irq_data->handler_data to irq_data_common, once all usage sites are converted. Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Cc: David S. Miller <davem@davemloft.net> Link: http://lkml.kernel.org/r/1433145945-789-9-git-send-email-jiang.liu@linux.intel.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:

committed by
Thomas Gleixner

parent
d2109a1219
commit
6a4a5b34c3
@@ -188,9 +188,10 @@ static unsigned long sun4m_imask[0x50] = {
|
||||
|
||||
static void sun4m_mask_irq(struct irq_data *data)
|
||||
{
|
||||
struct sun4m_handler_data *handler_data = data->handler_data;
|
||||
struct sun4m_handler_data *handler_data;
|
||||
int cpu = smp_processor_id();
|
||||
|
||||
handler_data = irq_data_get_irq_handler_data(data);
|
||||
if (handler_data->mask) {
|
||||
unsigned long flags;
|
||||
|
||||
@@ -206,9 +207,10 @@ static void sun4m_mask_irq(struct irq_data *data)
|
||||
|
||||
static void sun4m_unmask_irq(struct irq_data *data)
|
||||
{
|
||||
struct sun4m_handler_data *handler_data = data->handler_data;
|
||||
struct sun4m_handler_data *handler_data;
|
||||
int cpu = smp_processor_id();
|
||||
|
||||
handler_data = irq_data_get_irq_handler_data(data);
|
||||
if (handler_data->mask) {
|
||||
unsigned long flags;
|
||||
|
||||
|
Reference in New Issue
Block a user