From: H Hartley Sweeten Date: Mon, 14 Dec 2009 23:15:35 +0000 (-0500) Subject: USB: ehci-atmel.c: use resource_size() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f65c3540d316982c906e6ece7ccad00bba84574e;p=openwrt%2Fstaging%2Fblogic.git USB: ehci-atmel.c: use resource_size() Use resource_size(). Signed-off-by: H Hartley Sweeten Cc: David Brownell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c index 87c1b7c34c0e..51bd0edf544f 100644 --- a/drivers/usb/host/ehci-atmel.c +++ b/drivers/usb/host/ehci-atmel.c @@ -149,7 +149,7 @@ static int __init ehci_atmel_drv_probe(struct platform_device *pdev) goto fail_request_resource; } hcd->rsrc_start = res->start; - hcd->rsrc_len = res->end - res->start + 1; + hcd->rsrc_len = resource_size(res); if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, driver->description)) {