mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
d2109a1219
commit
6a4a5b34c3
3 changed files with 15 additions and 10 deletions
|
@ -188,7 +188,7 @@ void sun4d_handler_irq(unsigned int pil, struct pt_regs *regs)
|
|||
|
||||
static void sun4d_mask_irq(struct irq_data *data)
|
||||
{
|
||||
struct sun4d_handler_data *handler_data = data->handler_data;
|
||||
struct sun4d_handler_data *handler_data = irq_data_get_irq_handler_data(data);
|
||||
unsigned int real_irq;
|
||||
#ifdef CONFIG_SMP
|
||||
int cpuid = handler_data->cpuid;
|
||||
|
@ -206,7 +206,7 @@ static void sun4d_mask_irq(struct irq_data *data)
|
|||
|
||||
static void sun4d_unmask_irq(struct irq_data *data)
|
||||
{
|
||||
struct sun4d_handler_data *handler_data = data->handler_data;
|
||||
struct sun4d_handler_data *handler_data = irq_data_get_irq_handler_data(data);
|
||||
unsigned int real_irq;
|
||||
#ifdef CONFIG_SMP
|
||||
int cpuid = handler_data->cpuid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue