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 <Vijaya.Kumar@caviumnetworks.com>
Reviewed-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Vijaya Kumar K authored and Ian Campbell committed 2015-09-04 15:00:39 +01:00
1 parent d9be0990fb
commit f42f2cbe54
1 file changed
+2 -2
+2 -2
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.