mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 10:01:43 +00:00
usb: Use resource_size function
Signed-off-by: Paul Vlase <vlase.paul@gmail.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a4dee9c9fd
commit
07cd29d765
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user