regmap: irq: allow to register one cell interrupt controllers
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Fri, 9 Jun 2017 09:05:16 +0000 (12:05 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 9 Jun 2017 17:38:06 +0000 (18:38 +0100)
The change makes possible to use regmap-irq interface within drivers
of simple interrupt controllers, which don't have an option to handle
different interrupt types and thus have one cell interrupt controllers
described in device tree bindings.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-irq.c

index cd54189f2b1d4d18dd62172385848a75887bbc87..c4a1eadb093f3dd151681435174dc7d2995a4e81 100644 (file)
@@ -394,7 +394,7 @@ static int regmap_irq_map(struct irq_domain *h, unsigned int virq,
 
 static const struct irq_domain_ops regmap_domain_ops = {
        .map    = regmap_irq_map,
-       .xlate  = irq_domain_xlate_twocell,
+       .xlate  = irq_domain_xlate_onetwocell,
 };
 
 /**