diff options
author | hartleys <hartleys@visionengravers.com> | 2009-12-14 22:40:05 +0000 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-12-17 09:00:10 -0700 |
commit | 76b6fdd35a2d796febd5dbe0e25f42e2616bfed3 (patch) | |
tree | fd8977b9955166f1fc8f92e43d5d3dbba4f88e89 | |
parent | 82de76513eeb35b93a591497dcff217f2ec76041 (diff) | |
download | linux-3.10-76b6fdd35a2d796febd5dbe0e25f42e2616bfed3.tar.gz linux-3.10-76b6fdd35a2d796febd5dbe0e25f42e2616bfed3.tar.bz2 linux-3.10-76b6fdd35a2d796febd5dbe0e25f42e2616bfed3.zip |
spi: spi_sh_sci.c: use resource_size()
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>
-rw-r--r-- | drivers/spi/spi_sh_sci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_sh_sci.c b/drivers/spi/spi_sh_sci.c index 7d36720eb98..a65c12ffa73 100644 --- a/drivers/spi/spi_sh_sci.c +++ b/drivers/spi/spi_sh_sci.c @@ -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; |