Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40062
b: refs/heads/master
c: 6bda573
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Oct 20, 2006
1 parent 8db679f commit f3b9d13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: e83f214e45a80459d2931ae1259ab5fae82c8a8e
refs/heads/master: 6bda57365a5fda4743d83a5987c6aab66e90771c
7 changes: 6 additions & 1 deletion trunk/arch/sparc64/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,13 @@ static int of_device_resume(struct device * dev)
void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name)
{
unsigned long ret = res->start + offset;
struct resource *r;

if (!request_region(ret, size, name))
if (res->flags & IORESOURCE_MEM)
r = request_mem_region(ret, size, name);
else
r = request_region(ret, size, name);
if (!r)
ret = 0;

return (void __iomem *) ret;
Expand Down

0 comments on commit f3b9d13

Please sign in to comment.