aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorhartleys <hartleys@visionengravers.com>2009-12-14 17:43:42 -0500
committerGrant Likely <grant.likely@secretlab.ca>2009-12-17 11:00:22 -0500
commitd53342bf9616ecd7e4a03fece167d0f53b195e87 (patch)
tree55f406c1de60da0846d6a3a271cba110b972f791 /drivers/spi
parent76b6fdd35a2d796febd5dbe0e25f42e2616bfed3 (diff)
spi: spi_txx9.c: use resource_size()
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: David Brownell <dbrownell@users.sourceforge.net> Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi_txx9.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/spi/spi_txx9.c b/drivers/spi/spi_txx9.c
index 96057de133ad..c166eb5ad3c5 100644
--- a/drivers/spi/spi_txx9.c
+++ b/drivers/spi/spi_txx9.c
@@ -376,12 +376,10 @@ static int __init txx9spi_probe(struct platform_device *dev)
376 res = platform_get_resource(dev, IORESOURCE_MEM, 0); 376 res = platform_get_resource(dev, IORESOURCE_MEM, 0);
377 if (!res) 377 if (!res)
378 goto exit_busy; 378 goto exit_busy;
379 if (!devm_request_mem_region(&dev->dev, 379 if (!devm_request_mem_region(&dev->dev, res->start, resource_size(res),
380 res->start, res->end - res->start + 1,
381 "spi_txx9")) 380 "spi_txx9"))
382 goto exit_busy; 381 goto exit_busy;
383 c->membase = devm_ioremap(&dev->dev, 382 c->membase = devm_ioremap(&dev->dev, res->start, resource_size(res));
384 res->start, res->end - res->start + 1);
385 if (!c->membase) 383 if (!c->membase)
386 goto exit_busy; 384 goto exit_busy;
387 385