projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ecdce7
)
usb: r8a66597: Fix initilization size of r8a66597 info structure
author
Yasuhisa Umano
<yasuhisa.umano.zc@renesas.com>
Fri, 18 Apr 2014 02:33:15 +0000
(11:33 +0900)
committer
Marek Vasut
<marex@denx.de>
Wed, 25 Jun 2014 20:38:04 +0000
(22:38 +0200)
Initialization of r8a66597 info structure is not enough.
Because initilization was used size of pointer.
This fixes that use size of r8a6659 info structure.
Signed-off-by: Yasuhisa Umano <yasuhisa.umano.zc@renesas.com>
drivers/usb/host/r8a66597-hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/r8a66597-hcd.c
b/drivers/usb/host/r8a66597-hcd.c
index c58d2a9d115d9c7097e36fac6f0f6fe7e02010a6..511454479b109d3f303116e910b6d6722582d0bf 100644
(file)
--- a/
drivers/usb/host/r8a66597-hcd.c
+++ b/
drivers/usb/host/r8a66597-hcd.c
@@
-807,7
+807,7
@@
int usb_lowlevel_init(int index, enum usb_init_type init, void **controller)
R8A66597_DPRINT("%s\n", __func__);
- memset(r8a66597, 0, sizeof(r8a66597));
+ memset(r8a66597, 0, sizeof(
*
r8a66597));
r8a66597->reg = CONFIG_R8A66597_BASE_ADDR;
disable_controller(r8a66597);