Skip to content

Commit

Permalink
spi: spi_sh_sci.c: use resource_size()
Browse files Browse the repository at this point in the history
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
hartleys authored and Grant Likely committed Dec 17, 2009
1 parent 82de765 commit 76b6fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi_sh_sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static int sh_sci_spi_probe(struct platform_device *dev)
ret = -ENOENT;
goto err1;
}
sp->membase = ioremap(r->start, r->end - r->start + 1);
sp->membase = ioremap(r->start, resource_size(r));
if (!sp->membase) {
ret = -ENXIO;
goto err1;
Expand Down

0 comments on commit 76b6fdd

Please sign in to comment.