X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fusb%2Fhost%2Foxu210hp-hcd.c;fp=drivers%2Fusb%2Fhost%2Foxu210hp-hcd.c;h=dcd889803f0f2eb920582403c268868e4b00e50c;hb=28f65c11f2ffb3957259dece647a24f8ad2e241b;hp=5fbe997dc6dfbf91989056ef93f29cc9dd72e571;hpb=140a1ef2f91a00e1d25f0878c193abdc25bf6ebe;p=pandora-kernel.git diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c index 5fbe997dc6df..dcd889803f0f 100644 --- a/drivers/usb/host/oxu210hp-hcd.c +++ b/drivers/usb/host/oxu210hp-hcd.c @@ -3828,7 +3828,7 @@ static int oxu_drv_probe(struct platform_device *pdev) return -ENODEV; } memstart = res->start; - memlen = res->end - res->start + 1; + memlen = resource_size(res); dev_dbg(&pdev->dev, "MEM resource %lx-%lx\n", memstart, memlen); if (!request_mem_region(memstart, memlen, oxu_hc_driver.description)) {