Skip to content

Commit

Permalink
usb: Use resource_size function
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Vlase <[email protected]>
Acked-by: Alan Stern <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
paulvlase authored and gregkh committed Mar 15, 2013
1 parent a4dee9c commit 07cd29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/ehci-mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 07cd29d

Please sign in to comment.