diff options
Diffstat (limited to 'drivers/amba/bus.c')
-rw-r--r-- | drivers/amba/bus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index d15acbb4d59e..01c2cf4efcdd 100644 --- a/drivers/amba/bus.c +++ b/drivers/amba/bus.c | |||
@@ -511,6 +511,9 @@ int amba_device_add(struct amba_device *dev, struct resource *parent) | |||
511 | void __iomem *tmp; | 511 | void __iomem *tmp; |
512 | int i, ret; | 512 | int i, ret; |
513 | 513 | ||
514 | WARN_ON(dev->irq[0] == (unsigned int)-1); | ||
515 | WARN_ON(dev->irq[1] == (unsigned int)-1); | ||
516 | |||
514 | ret = request_resource(parent, &dev->res); | 517 | ret = request_resource(parent, &dev->res); |
515 | if (ret) | 518 | if (ret) |
516 | goto err_out; | 519 | goto err_out; |