From: Felipe Balbi Date: Tue, 15 Dec 2009 09:08:42 +0000 (+0200) Subject: USB: musb: use resource_size() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=195e9e4691ad0544746540852e03d7c8c6c877ea;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git USB: musb: use resource_size() it makes ioremap() usage looks cleaner. Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- 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) if (!iomem || irq == 0) return -ENODEV; - base = ioremap(iomem->start, iomem->end - iomem->start + 1); + base = ioremap(iomem->start, resource_size(iomem)); if (!base) { dev_err(dev, "ioremap failed\n"); return -ENOMEM;