diff options
author | Yasuhisa Umano <yasuhisa.umano.zc@renesas.com> | 2014-04-18 11:33:15 +0900 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2014-06-25 22:38:04 +0200 |
commit | 198c5f998a1fbbdb5cfe6035f8c890ffb1526d8e (patch) | |
tree | 404e5e737e4a86fe08d6bca3328294422bec6e33 /drivers/usb/host/r8a66597-hcd.c | |
parent | 8ecdce7280fff9347ba137ea7431664e1bf57534 (diff) |
usb: r8a66597: Fix initilization size of r8a66597 info structure
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>
Diffstat (limited to 'drivers/usb/host/r8a66597-hcd.c')
-rw-r--r-- | drivers/usb/host/r8a66597-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c index c58d2a9d11..511454479b 100644 --- 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); |