treewide: Convert uses of struct resource to resource_size(ptr)
[deliverable/linux.git] / drivers / usb / host / whci / init.c
index f7582e8e2169216c64e0f75ff6e67e037579f885..d3e13b640d4ba28493f27ca99fc26cfd3677981f 100644 (file)
@@ -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)
This page took 0.026302 seconds and 5 git commands to generate.