summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/whci/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/whci/init.c')
-rw-r--r--drivers/usb/host/whci/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/whci/init.c b/drivers/usb/host/whci/init.c
index f7582e8e216..d3e13b640d4 100644
--- a/drivers/usb/host/whci/init.c
+++ b/drivers/usb/host/whci/init.c
@@ -178,7 +178,7 @@ void whc_clean_up(struct whc *whc)
if (whc->qset_pool)
dma_pool_destroy(whc->qset_pool);
- len = whc->umc->resource.end - whc->umc->resource.start + 1;
+ len = resource_size(&whc->umc->resource);
if (whc->base)
iounmap(whc->base);
if (whc->base_phys)