Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294817
b: refs/heads/master
c: 6e93004
h: refs/heads/master
i:
  294815: 22668e6
v: v3
  • Loading branch information
Joerg Roedel committed Mar 9, 2012
1 parent 39c70a3 commit ff554db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 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: 8704a1ba4751fc5ffe2289765cb7222b3a1e20d5
refs/heads/master: 6e930045abe51013ee3b47eaeb5aef4bc5a35218
10 changes: 1 addition & 9 deletions trunk/drivers/iommu/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,22 +358,14 @@ static void iommu_disable(struct amd_iommu *iommu)
*/
static u8 * __init iommu_map_mmio_space(u64 address)
{
u8 *ret;

if (!request_mem_region(address, MMIO_REGION_LENGTH, "amd_iommu")) {
pr_err("AMD-Vi: Can not reserve memory region %llx for mmio\n",
address);
pr_err("AMD-Vi: This is a BIOS bug. Please contact your hardware vendor\n");
return NULL;
}

ret = ioremap_nocache(address, MMIO_REGION_LENGTH);
if (ret != NULL)
return ret;

release_mem_region(address, MMIO_REGION_LENGTH);

return NULL;
return ioremap_nocache(address, MMIO_REGION_LENGTH);
}

static void __init iommu_unmap_mmio_space(struct amd_iommu *iommu)
Expand Down

0 comments on commit ff554db

Please sign in to comment.