diff options
Diffstat (limited to 'drivers/usb/host/ehci-atmel.c')
-rw-r--r-- | drivers/usb/host/ehci-atmel.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
149 | goto fail_request_resource; | 149 | goto fail_request_resource; |
150 | } | 150 | } |
151 | hcd->rsrc_start = res->start; | 151 | hcd->rsrc_start = res->start; |
152 | hcd->rsrc_len = res->end - res->start + 1; | 152 | hcd->rsrc_len = resource_size(res); |
153 | 153 | ||
154 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, | 154 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, |
155 | driver->description)) { | 155 | driver->description)) { |