irq_domain/powerpc: Replace custom xlate functions with library functions
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / sysdev / uic.c
index 84e59c97391fe63970237453010fbdc4934f1a4c..92033936a8f75858904f2474368306a2efa34ecf 100644 (file)
@@ -190,21 +190,9 @@ static int uic_host_map(struct irq_domain *h, unsigned int virq,
        return 0;
 }
 
-static int uic_host_xlate(struct irq_domain *h, struct device_node *ct,
-                         const u32 *intspec, unsigned int intsize,
-                         irq_hw_number_t *out_hwirq, unsigned int *out_type)
-
-{
-       /* UIC intspecs must have 2 cells */
-       BUG_ON(intsize != 2);
-       *out_hwirq = intspec[0];
-       *out_type = intspec[1];
-       return 0;
-}
-
 static struct irq_domain_ops uic_host_ops = {
        .map    = uic_host_map,
-       .xlate  = uic_host_xlate,
+       .xlate  = irq_domain_xlate_twocell,
 };
 
 void uic_irq_cascade(unsigned int virq, struct irq_desc *desc)