]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
USB: ohci-sh - use resource_size instead of defining its own resource_len macro
authorAxel Lin <axel.lin@gmail.com>
Fri, 15 Oct 2010 05:29:24 +0000 (13:29 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:22:15 +0000 (10:22 -0700)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-sh.c

index 60f03cc7ec4f20a4f80d228b59faebe715ae1148..0b35d22cc70edc3280bba59c29312094a564a917 100644 (file)
@@ -77,7 +77,6 @@ static const struct hc_driver ohci_sh_hc_driver = {
 
 /*-------------------------------------------------------------------------*/
 
-#define resource_len(r) (((r)->end - (r)->start) + 1)
 static int ohci_hcd_sh_probe(struct platform_device *pdev)
 {
        struct resource *res = NULL;
@@ -109,7 +108,7 @@ static int ohci_hcd_sh_probe(struct platform_device *pdev)
 
        hcd->regs = (void __iomem *)res->start;
        hcd->rsrc_start = res->start;
-       hcd->rsrc_len = resource_len(res);
+       hcd->rsrc_len = resource_size(res);
        ret = usb_add_hcd(hcd, irq, IRQF_DISABLED);
        if (ret != 0) {
                err("Failed to add hcd");