Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176937
b: refs/heads/master
c: d6587fe
h: refs/heads/master
i:
  176935: 1e6daae
v: v3
  • Loading branch information
Tobias Klauser authored and David Woodhouse committed Nov 30, 2009
1 parent 8dc9a55 commit 6d6d647
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: 2af7c653993199fb32dc6d9504064a0c9c57e5d6
refs/heads/master: d6587feaf0ed7511b3d0b52bcaae8ecd0949d3af
6 changes: 3 additions & 3 deletions trunk/drivers/mtd/maps/ixp4xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ static int ixp4xx_flash_probe(struct platform_device *dev)
* not attempt to do a direct access on us.
*/
info->map.phys = NO_XIP;
info->map.size = dev->resource->end - dev->resource->start + 1;
info->map.size = resource_size(dev->resource);

/*
* We only support 16-bit accesses for now. If and when
Expand All @@ -224,7 +224,7 @@ static int ixp4xx_flash_probe(struct platform_device *dev)
info->map.copy_from = ixp4xx_copy_from,

info->res = request_mem_region(dev->resource->start,
dev->resource->end - dev->resource->start + 1,
resource_size(dev->resource),
"IXP4XXFlash");
if (!info->res) {
printk(KERN_ERR "IXP4XXFlash: Could not reserve memory region\n");
Expand All @@ -233,7 +233,7 @@ static int ixp4xx_flash_probe(struct platform_device *dev)
}

info->map.virt = ioremap(dev->resource->start,
dev->resource->end - dev->resource->start + 1);
resource_size(dev->resource));
if (!info->map.virt) {
printk(KERN_ERR "IXP4XXFlash: Failed to ioremap region\n");
err = -EIO;
Expand Down

0 comments on commit 6d6d647

Please sign in to comment.