]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
xen/dt: Handle correctly node without interrupt-map in dt_for_each_irq_map
authorVijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Mon, 31 Aug 2015 11:06:18 +0000 (16:36 +0530)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 4 Sep 2015 14:00:39 +0000 (15:00 +0100)
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>
xen/common/device_tree.c

index 323c3be3e3a83bfcd1fdecda05d454746a6d080f..18cdb6f5f2065eb25c722c45a709a212ea923732 100644 (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);