projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5672b7e
)
USB: ehci-atmel.c: use resource_size()
author
H Hartley Sweeten
<hartleys@visionengravers.com>
Mon, 14 Dec 2009 23:15:35 +0000
(18:15 -0500)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 2 Mar 2010 22:53:18 +0000
(14:53 -0800)
Use resource_size().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-atmel.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ehci-atmel.c
b/drivers/usb/host/ehci-atmel.c
index 87c1b7c34c0e82bc0684f1fcb8bd28e7f917c225..51bd0edf544fc56b9463ea130711bd4e9767d9b6 100644
(file)
--- a/
drivers/usb/host/ehci-atmel.c
+++ b/
drivers/usb/host/ehci-atmel.c
@@
-149,7
+149,7
@@
static int __init ehci_atmel_drv_probe(struct platform_device *pdev)
goto fail_request_resource;
}
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,
driver->description)) {