From: Vijaya Kumar K Date: Mon, 31 Aug 2015 11:06:18 +0000 (+0530) Subject: xen/dt: Handle correctly node without interrupt-map in dt_for_each_irq_map X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2590 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f42f2cbe54079a7480fa584680d7f7b849b97136;p=xen.git xen/dt: Handle correctly node without interrupt-map in dt_for_each_irq_map dt_for_each_irq_map() returns error if no irq mapping is found. With this patch, ignore error and return success Signed-off-by: Vijaya Kumar K Reviewed-by: Julien Grall Acked-by: Ian Campbell --- diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c index 323c3be3e3..18cdb6f5f2 100644 --- a/xen/common/device_tree.c +++ b/xen/common/device_tree.c @@ -1081,11 +1081,11 @@ int dt_for_each_irq_map(const struct dt_device_node *dev, /* Now look for an interrupt-map */ imap = dt_get_property(dev, "interrupt-map", &imaplen); - /* No interrupt map, check for an interrupt parent */ + /* No interrupt-map found. Ignore */ if ( imap == NULL ) { dt_dprintk(" -> no map, ignoring\n"); - goto fail; + return 0; } imaplen /= sizeof(u32);