diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2009-12-11 16:50:58 -0500 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-12-17 06:18:15 -0500 |
commit | 3c0f6e1eddeddd95ed04d4a7f0e55ab0aa99adf9 (patch) | |
tree | c564c7e2356a847e2df51f5ce2af64b1a3e8f99b /drivers | |
parent | d3aad6399a240300534d83ffdacfc40e6ed4fa73 (diff) |
leds: leds-cobalt-qube.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')
-rw-r--r-- | drivers/leds/leds-cobalt-qube.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-cobalt-qube.c b/drivers/leds/leds-cobalt-qube.c index 8816806accd2..de1975388ec3 100644 --- a/drivers/leds/leds-cobalt-qube.c +++ b/drivers/leds/leds-cobalt-qube.c | |||
@@ -43,7 +43,7 @@ static int __devinit cobalt_qube_led_probe(struct platform_device *pdev) | |||
43 | if (!res) | 43 | if (!res) |
44 | return -EBUSY; | 44 | return -EBUSY; |
45 | 45 | ||
46 | led_port = ioremap(res->start, res->end - res->start + 1); | 46 | led_port = ioremap(res->start, resource_size(res)); |
47 | if (!led_port) | 47 | if (!led_port) |
48 | return -ENOMEM; | 48 | return -ENOMEM; |
49 | 49 | ||