summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-octeon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ohci-octeon.c')
-rw-r--r--drivers/usb/host/ohci-octeon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-octeon.c b/drivers/usb/host/ohci-octeon.c
index e4ddfaf8870..d8b45647d1d 100644
--- a/drivers/usb/host/ohci-octeon.c
+++ b/drivers/usb/host/ohci-octeon.c
@@ -135,7 +135,7 @@ static int ohci_octeon_drv_probe(struct platform_device *pdev)
return -ENOMEM;
hcd->rsrc_start = res_mem->start;
- hcd->rsrc_len = res_mem->end - res_mem->start + 1;
+ hcd->rsrc_len = resource_size(res_mem);
if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len,
OCTEON_OHCI_HCD_NAME)) {