Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260479
b: refs/heads/master
c: 66cf402
h: refs/heads/master
i:
  260477: 56770af
  260475: 3a77e96
  260471: 3943c85
  260463: 1d501e7
  260447: 42d212a
  260415: 63e4b99
  260351: 69d4438
v: v3
  • Loading branch information
Ohad Ben-Cohen committed Jul 4, 2011
1 parent e213c9a commit fb0fb7d
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 7e20b6f39aef541d890eba1fdf493f33b39d29e4
refs/heads/master: 66cf402bd911d3874f986156d0bee8b943b71e7c
6 changes: 3 additions & 3 deletions trunk/arch/arm/plat-omap/iovmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static size_t sgtable_len(const struct sg_table *sgt)
for_each_sg(sgt->sgl, sg, sgt->nents, i) {
size_t bytes;

bytes = sg_dma_len(sg);
bytes = sg->length;

if (!iopgsz_ok(bytes)) {
pr_err("%s: sg[%d] not iommu pagesize(%x)\n",
Expand Down Expand Up @@ -198,7 +198,7 @@ static void *vmap_sg(const struct sg_table *sgt)
int err;

pa = sg_phys(sg);
bytes = sg_dma_len(sg);
bytes = sg->length;

BUG_ON(bytes != PAGE_SIZE);

Expand Down Expand Up @@ -476,7 +476,7 @@ static int map_iovm_area(struct iommu *obj, struct iovm_struct *new,
struct iotlb_entry e;

pa = sg_phys(sg);
bytes = sg_dma_len(sg);
bytes = sg->length;

flags &= ~IOVMF_PGSZ_MASK;
pgsz = bytes_to_iopgsz(bytes);
Expand Down

0 comments on commit fb0fb7d

Please sign in to comment.