Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165443
b: refs/heads/master
c: 2763c50
h: refs/heads/master
i:
  165441: 5dcf2da
  165439: 1adebca
v: v3
  • Loading branch information
Wolfram Sang authored and David Woodhouse committed Sep 4, 2009
1 parent dba6518 commit 384c73f
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 44a1f2085e8fe07b3aecdab7c391ca057d75da0f
refs/heads/master: 2763c508a3c8f8ec5d6df4e8c63d5e2a5a7d3954
7 changes: 4 additions & 3 deletions trunk/drivers/mtd/maps/physmap_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ static int __devinit of_flash_probe(struct of_device *dev,
const u32 *p;
int reg_tuple_size;
struct mtd_info **mtd_list = NULL;
resource_size_t res_size;

reg_tuple_size = (of_n_addr_cells(dp) + of_n_size_cells(dp)) * sizeof(u32);

Expand Down Expand Up @@ -233,8 +234,8 @@ static int __devinit of_flash_probe(struct of_device *dev,
(unsigned long long)res.end);

err = -EBUSY;
info->list[i].res = request_mem_region(res.start, res.end -
res.start + 1,
res_size = resource_size(&res);
info->list[i].res = request_mem_region(res.start, res_size,
dev_name(&dev->dev));
if (!info->list[i].res)
goto err_out;
Expand All @@ -249,7 +250,7 @@ static int __devinit of_flash_probe(struct of_device *dev,

info->list[i].map.name = dev_name(&dev->dev);
info->list[i].map.phys = res.start;
info->list[i].map.size = res.end - res.start + 1;
info->list[i].map.size = res_size;
info->list[i].map.bankwidth = *width;

err = -ENOMEM;
Expand Down

0 comments on commit 384c73f

Please sign in to comment.