If we do the call to of_address_to_resource() first, then we don't
need to worry about freeing the irq_host (which the code doesn't do
currently anyway).
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
        struct resource res;
        u32 temp = 0, ret, high_active = 0;
 
+       ret = of_address_to_resource(node, 0, &res);
+       if (ret)
+               return;
+
        qe_ic = alloc_bootmem(sizeof(struct qe_ic));
        if (qe_ic == NULL)
                return;
                return;
        }
 
-       ret = of_address_to_resource(node, 0, &res);
-       if (ret)
-               return;
-
        qe_ic->regs = ioremap(res.start, res.end - res.start + 1);
 
        qe_ic->irqhost->host_data = qe_ic;