summaryrefslogtreecommitdiff
path: root/drivers/usb/host/ohci-sh.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-10-15 05:29:24 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 17:22:15 (GMT)
commit39eb234874af4322f85e2a29e3aad33ce68cbed5 (patch)
tree2674f67d088a343d61037abb8275aaefa7707958 /drivers/usb/host/ohci-sh.c
parent4e5c353b3ccc4cc856d75ac751f4c09e0275c08b (diff)
downloadlinux-39eb234874af4322f85e2a29e3aad33ce68cbed5.tar.xz
USB: ohci-sh - use resource_size instead of defining its own resource_len macro
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>
Diffstat (limited to 'drivers/usb/host/ohci-sh.c')
-rw-r--r--drivers/usb/host/ohci-sh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-sh.c b/drivers/usb/host/ohci-sh.c
index 60f03cc..0b35d22 100644
--- a/drivers/usb/host/ohci-sh.c
+++ b/drivers/usb/host/ohci-sh.c
@@ -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");