* [PATCH] usb: Use resource_size function
@ 2013-03-10 13:52 Paul Vlase
2013-03-11 15:00 ` Alan Stern
0 siblings, 1 reply; 2+ messages in thread
From: Paul Vlase @ 2013-03-10 13:52 UTC (permalink / raw)
To: stern; +Cc: gregkh, linux-usb, linux-kernel, Paul Vlase
Signed-off-by: Paul Vlase <vlase.paul@gmail.com>
---
drivers/usb/host/ehci-mv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c
index 3065809..5cd9f96 100644
--- a/drivers/usb/host/ehci-mv.c
+++ b/drivers/usb/host/ehci-mv.c
@@ -225,7 +225,7 @@ static int mv_ehci_probe(struct platform_device *pdev)
(void __iomem *) ((unsigned long) ehci_mv->cap_regs + offset);
hcd->rsrc_start = r->start;
- hcd->rsrc_len = r->end - r->start + 1;
+ hcd->rsrc_len = resource_size(r);
hcd->regs = ehci_mv->op_regs;
hcd->irq = platform_get_irq(pdev, 0);
--
1.7.10.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] usb: Use resource_size function
2013-03-10 13:52 [PATCH] usb: Use resource_size function Paul Vlase
@ 2013-03-11 15:00 ` Alan Stern
0 siblings, 0 replies; 2+ messages in thread
From: Alan Stern @ 2013-03-11 15:00 UTC (permalink / raw)
To: Paul Vlase; +Cc: gregkh, linux-usb, linux-kernel
On Sun, 10 Mar 2013, Paul Vlase wrote:
> Signed-off-by: Paul Vlase <vlase.paul@gmail.com>
> ---
> drivers/usb/host/ehci-mv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c
> index 3065809..5cd9f96 100644
> --- a/drivers/usb/host/ehci-mv.c
> +++ b/drivers/usb/host/ehci-mv.c
> @@ -225,7 +225,7 @@ static int mv_ehci_probe(struct platform_device *pdev)
> (void __iomem *) ((unsigned long) ehci_mv->cap_regs + offset);
>
> hcd->rsrc_start = r->start;
> - hcd->rsrc_len = r->end - r->start + 1;
> + hcd->rsrc_len = resource_size(r);
> hcd->regs = ehci_mv->op_regs;
>
> hcd->irq = platform_get_irq(pdev, 0);
Acked-by: Alan Stern <stern@rowland.harvard.edu>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-11 15:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-10 13:52 [PATCH] usb: Use resource_size function Paul Vlase
2013-03-11 15:00 ` Alan Stern
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®