]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/host/ohci-xls.c
Merge branch 'stable/for-linus-fixes-3.3' of git://git.kernel.org/pub/scm/linux/kerne...
[~andy/linux] / drivers / usb / host / ohci-xls.c
index a3a9c6f45b91a57e6f90e6047d50c19480fa9e24..a2247867af8691af341cf578c864bc86b40f5b77 100644 (file)
@@ -40,7 +40,7 @@ static int ohci_xls_probe_internal(const struct hc_driver *driver,
                goto err1;
        }
        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)) {