projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: Convert uses of struct resource to resource_size(ptr)
[linux-2.6-block.git]
/
drivers
/
usb
/
host
/
ehci-ath79.c
diff --git
a/drivers/usb/host/ehci-ath79.c
b/drivers/usb/host/ehci-ath79.c
index 98cc8a13169c9aab288803ecba0d88062a04e727..eab3d7059fbe83f17ba5850703ddab93deefcec7 100644
(file)
--- a/
drivers/usb/host/ehci-ath79.c
+++ b/
drivers/usb/host/ehci-ath79.c
@@
-146,7
+146,7
@@
static int ehci_ath79_probe(struct platform_device *pdev)
return -ENOMEM;
hcd->rsrc_start = res->start;
- hcd->rsrc_len = res
->end - res->start + 1
;
+ hcd->rsrc_len = res
ource_size(res)
;
if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) {
dev_dbg(&pdev->dev, "controller already in use\n");