diff options
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/generic-chip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/generic-chip.c b/kernel/irq/generic-chip.c index 10e663ab1f4a..452d6f2ba21d 100644 --- a/kernel/irq/generic-chip.c +++ b/kernel/irq/generic-chip.c | |||
@@ -275,7 +275,7 @@ int irq_alloc_domain_generic_chips(struct irq_domain *d, int irqs_per_chip, | |||
275 | if (d->gc) | 275 | if (d->gc) |
276 | return -EBUSY; | 276 | return -EBUSY; |
277 | 277 | ||
278 | numchips = d->revmap_size / irqs_per_chip; | 278 | numchips = DIV_ROUND_UP(d->revmap_size, irqs_per_chip); |
279 | if (!numchips) | 279 | if (!numchips) |
280 | return -EINVAL; | 280 | return -EINVAL; |
281 | 281 | ||