aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-cobalt-raq.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2009-12-11 18:13:40 -0500
committerRichard Purdie <rpurdie@linux.intel.com>2009-12-17 11:16:23 +0000
commitd3aad6399a240300534d83ffdacfc40e6ed4fa73 (patch)
tree886776b7b682d53a0995451718834052879bdc46 /drivers/leds/leds-cobalt-raq.c
parented4a10b47ff1e4059157f33248a62d9551ced786 (diff)
downloadkernel_samsung_espresso10-d3aad6399a240300534d83ffdacfc40e6ed4fa73.zip
kernel_samsung_espresso10-d3aad6399a240300534d83ffdacfc40e6ed4fa73.tar.gz
kernel_samsung_espresso10-d3aad6399a240300534d83ffdacfc40e6ed4fa73.tar.bz2
leds: leds-cobalt-raq.c - use resource_size()
Use resource_size() for ioremap. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'drivers/leds/leds-cobalt-raq.c')
-rw-r--r--drivers/leds/leds-cobalt-raq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-cobalt-raq.c b/drivers/leds/leds-cobalt-raq.c
index defc212..438d483 100644
--- a/drivers/leds/leds-cobalt-raq.c
+++ b/drivers/leds/leds-cobalt-raq.c
@@ -84,7 +84,7 @@ static int __devinit cobalt_raq_led_probe(struct platform_device *pdev)
if (!res)
return -EBUSY;
- led_port = ioremap(res->start, res->end - res->start + 1);
+ led_port = ioremap(res->start, resource_size(res));
if (!led_port)
return -ENOMEM;