Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189879
b: refs/heads/master
c: e182c77
h: refs/heads/master
i:
  189877: f34ac6b
  189875: ed7c694
  189871: 58ffa1d
v: v3
  • Loading branch information
David S. Miller committed Apr 13, 2010
1 parent ef3575a commit 00b372a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 25ad403f67d7673f38a473ec138d240804785ae3
refs/heads/master: e182c77cc291456eed127b1472952ddb59a81a9d
11 changes: 8 additions & 3 deletions trunk/arch/sparc/kernel/pci_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,14 +371,19 @@ static void pci_register_iommu_region(struct pci_pbm_info *pbm)
struct resource *rp = kzalloc(sizeof(*rp), GFP_KERNEL);

if (!rp) {
prom_printf("Cannot allocate IOMMU resource.\n");
prom_halt();
pr_info("%s: Cannot allocate IOMMU resource.\n",
pbm->name);
return;
}
rp->name = "IOMMU";
rp->start = pbm->mem_space.start + (unsigned long) vdma[0];
rp->end = rp->start + (unsigned long) vdma[1] - 1UL;
rp->flags = IORESOURCE_BUSY;
request_resource(&pbm->mem_space, rp);
if (request_resource(&pbm->mem_space, rp)) {
pr_info("%s: Unable to request IOMMU resource.\n",
pbm->name);
kfree(rp);
}
}
}

Expand Down

0 comments on commit 00b372a

Please sign in to comment.