diff options
author | Felipe Balbi <felipe.balbi@nokia.com> | 2009-12-15 04:08:42 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 17:53:28 -0500 |
commit | 195e9e4691ad0544746540852e03d7c8c6c877ea (patch) | |
tree | 4b1a4887dd9396e8553e2cd2a41e11f4286fbd94 /drivers/usb/musb | |
parent | 767ffec15e25b34c7194e47f0ad1fbf63a568d44 (diff) |
USB: musb: use resource_size()
it makes ioremap() usage looks cleaner.
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/musb_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 5eb9318cff77..1927fa9f01b2 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -2134,7 +2134,7 @@ static int __init musb_probe(struct platform_device *pdev) | |||
2134 | if (!iomem || irq == 0) | 2134 | if (!iomem || irq == 0) |
2135 | return -ENODEV; | 2135 | return -ENODEV; |
2136 | 2136 | ||
2137 | base = ioremap(iomem->start, iomem->end - iomem->start + 1); | 2137 | base = ioremap(iomem->start, resource_size(iomem)); |
2138 | if (!base) { | 2138 | if (!base) { |
2139 | dev_err(dev, "ioremap failed\n"); | 2139 | dev_err(dev, "ioremap failed\n"); |
2140 | return -ENOMEM; | 2140 | return -ENOMEM; |