aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2013-10-09 21:05:55 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-11-04 03:41:19 -0500
commit424aab72933cf1afafdeccf2760a74fe3a2fb7b4 (patch)
tree0adc91efe78cf29c08529645889aa137a3b39408 /drivers/mfd
parent4c78b520ee8f9c4b085912f1db2f1308f7ae5890 (diff)
mfd: max77693: Fix up bug of wrong interrupt number
The max77693 MFD device use irq domain method which has hardware interrupt number and virtual interrupt number getting through irq domain mapping. This patch use hardware interrupt number instead of virtual interrupt number to get struct irq_data. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/max77693-irq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/max77693-irq.c b/drivers/mfd/max77693-irq.c
index 1029d018c739..66b58fe77094 100644
--- a/drivers/mfd/max77693-irq.c
+++ b/drivers/mfd/max77693-irq.c
@@ -128,7 +128,8 @@ static void max77693_irq_sync_unlock(struct irq_data *data)
128static const inline struct max77693_irq_data * 128static const inline struct max77693_irq_data *
129irq_to_max77693_irq(struct max77693_dev *max77693, int irq) 129irq_to_max77693_irq(struct max77693_dev *max77693, int irq)
130{ 130{
131 return &max77693_irqs[irq]; 131 struct irq_data *data = irq_get_irq_data(irq);
132 return &max77693_irqs[data->hwirq];
132} 133}
133 134
134static void max77693_irq_mask(struct irq_data *data) 135static void max77693_irq_mask(struct irq_data *data)