aboutsummaryrefslogtreecommitdiffstats
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 e4ddfaf8870f..d8b45647d1dc 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)
135 return -ENOMEM; 135 return -ENOMEM;
136 136
137 hcd->rsrc_start = res_mem->start; 137 hcd->rsrc_start = res_mem->start;
138 hcd->rsrc_len = res_mem->end - res_mem->start + 1; 138 hcd->rsrc_len = resource_size(res_mem);
139 139
140 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, 140 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len,
141 OCTEON_OHCI_HCD_NAME)) { 141 OCTEON_OHCI_HCD_NAME)) {