Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164792
b: refs/heads/master
c: b5e3afb
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks authored and Linus Torvalds committed Sep 23, 2009
1 parent 12012c6 commit 6422221
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 1a0c220f791be9e15fd897adee257e72ed4134f8
refs/heads/master: b5e3afb5e32c9acf69fcc17961c3fddc47e9cc06
4 changes: 2 additions & 2 deletions trunk/drivers/spi/spi_s3c24xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ static int __init s3c24xx_spi_probe(struct platform_device *pdev)
goto err_no_iores;
}

hw->ioarea = request_mem_region(res->start, (res->end - res->start)+1,
hw->ioarea = request_mem_region(res->start, resource_size(res),
pdev->name);

if (hw->ioarea == NULL) {
Expand All @@ -308,7 +308,7 @@ static int __init s3c24xx_spi_probe(struct platform_device *pdev)
goto err_no_iores;
}

hw->regs = ioremap(res->start, (res->end - res->start)+1);
hw->regs = ioremap(res->start, resource_size(res));
if (hw->regs == NULL) {
dev_err(&pdev->dev, "Cannot map IO\n");
err = -ENXIO;
Expand Down

0 comments on commit 6422221

Please sign in to comment.