Skip to content

Commit f84b791

Browse files
Wang Kefenggregkh
authored andcommitted
ARM: 9120/1: Revert "amba: make use of -1 IRQs warn"
commit eb4f756 upstream. After commit 77a7300 ("of/irq: Get rid of NO_IRQ usage"), no irq case has been removed, irq_of_parse_and_map() will return 0 in all cases when get error from parse and map an interrupt into linux virq space. amba_device_register() is only used on no-DT initialization, see s3c64xx_pl080_init() arch/arm/mach-s3c/pl080.c ep93xx_init_devices() arch/arm/mach-ep93xx/core.c They won't set -1 to irq[0], so no need the warn. This reverts commit 2eac58d. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent bbc920f commit f84b791

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/amba/bus.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,6 @@ static int amba_device_try_add(struct amba_device *dev, struct resource *parent)
375375
void __iomem *tmp;
376376
int i, ret;
377377

378-
WARN_ON(dev->irq[0] == (unsigned int)-1);
379-
WARN_ON(dev->irq[1] == (unsigned int)-1);
380-
381378
ret = request_resource(parent, &dev->res);
382379
if (ret)
383380
goto err_out;

0 commit comments

Comments
 (0)