doc: fix some typos in documentations
[deliverable/linux.git] / kernel / irq / generic-chip.c
index e3544c19bdd260b10840c285b733403ebf8419fd..452d6f2ba21d9ae0b2b6cd1a966721b325ec9e23 100644 (file)
@@ -275,10 +275,7 @@ int irq_alloc_domain_generic_chips(struct irq_domain *d, int irqs_per_chip,
        if (d->gc)
                return -EBUSY;
 
-       if (d->revmap_type != IRQ_DOMAIN_MAP_LINEAR)
-               return -EINVAL;
-
-       numchips = d->revmap_data.linear.size / irqs_per_chip;
+       numchips = DIV_ROUND_UP(d->revmap_size, irqs_per_chip);
        if (!numchips)
                return -EINVAL;
 
@@ -310,6 +307,7 @@ int irq_alloc_domain_generic_chips(struct irq_domain *d, int irqs_per_chip,
                /* Calc pointer to the next generic chip */
                tmp += sizeof(*gc) + num_ct * sizeof(struct irq_chip_type);
        }
+       d->name = name;
        return 0;
 }
 EXPORT_SYMBOL_GPL(irq_alloc_domain_generic_chips);
This page took 0.02694 seconds and 5 git commands to generate.