Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101645
b: refs/heads/master
c: 2272a55
h: refs/heads/master
i:
  101643: b47e816
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Jun 9, 2008
1 parent 18ecc84 commit 355597a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84f1c1e08906f2206f2bbdd19e4ff6a0757ff7f8
refs/heads/master: 2272a55f16c998d916904bba018b0f40f430d744
8 changes: 4 additions & 4 deletions trunk/arch/powerpc/sysdev/qe_lib/qe_ic.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,10 @@ void __init qe_ic_init(struct device_node *node, unsigned int flags,
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;
Expand All @@ -342,10 +346,6 @@ void __init qe_ic_init(struct device_node *node, unsigned int flags,
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;
Expand Down

0 comments on commit 355597a

Please sign in to comment.