summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChander Kashyap <chander.kashyap@linaro.org>2013-10-21 06:01:40 +0900
committerHyungwon Hwang <human.hwang@samsung.com>2014-12-15 18:15:49 +0900
commitf9e3da33d4881b7c8c547582b5170ce2b611f210 (patch)
treef1064273c149eb49357d0ffbfb808fea7b30f485 /drivers
parent720ded2101cd62848dbf9da608fa06dab191c9a4 (diff)
downloadlinux-3.10-f9e3da33d4881b7c8c547582b5170ce2b611f210.tar.gz
linux-3.10-f9e3da33d4881b7c8c547582b5170ce2b611f210.tar.bz2
linux-3.10-f9e3da33d4881b7c8c547582b5170ce2b611f210.zip
irqchip: exynos-combiner: remove hard-coded irq_base value
Replace irq_domain_add_simple with "irq_domain_add_linear" in order to use linear irq domain, and to remove hardcoded irq_base_value. Change-Id: I2b8235d77f6545ac24b41d3bce8f24c60d829a39 Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/irqchip/exynos-combiner.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/irqchip/exynos-combiner.c b/drivers/irqchip/exynos-combiner.c
index a9d2b2fa4af..f3ae63535b4 100644
--- a/drivers/irqchip/exynos-combiner.c
+++ b/drivers/irqchip/exynos-combiner.c
@@ -206,8 +206,7 @@ static unsigned int combiner_lookup_irq(int group)
void __init combiner_init(void __iomem *combiner_base,
struct device_node *np,
- unsigned int max_nr,
- int irq_base)
+ unsigned int max_nr)
{
int i, irq;
unsigned int nr_irq;
@@ -221,7 +220,7 @@ void __init combiner_init(void __iomem *combiner_base,
return;
}
- combiner_irq_domain = irq_domain_add_simple(np, nr_irq, irq_base,
+ combiner_irq_domain = irq_domain_add_linear(np, nr_irq,
&combiner_irq_domain_ops, combiner_data);
if (WARN_ON(!combiner_irq_domain)) {
pr_warning("%s: irq domain init failed\n", __func__);
@@ -248,7 +247,6 @@ static int __init combiner_of_init(struct device_node *np,
{
void __iomem *combiner_base;
unsigned int max_nr = 20;
- int irq_base = -1;
combiner_base = of_iomap(np, 0);
if (!combiner_base) {
@@ -262,14 +260,7 @@ static int __init combiner_of_init(struct device_node *np,
__func__, max_nr);
}
- /*
- * FIXME: This is a hardwired COMBINER_IRQ(0,0). Once all devices
- * get their IRQ from DT, remove this in order to get dynamic
- * allocation.
- */
- irq_base = 160;
-
- combiner_init(combiner_base, np, max_nr, irq_base);
+ combiner_init(combiner_base, np, max_nr);
return 0;
}