Commit 198c5f998a1fbbdb5cfe6035f8c890ffb1526d8e

Authored by Yasuhisa Umano
Committed by Marek Vasut
1 parent 8ecdce7280

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/usb/host/r8a66597-hcd.c
... ... @@ -807,7 +807,7 @@
807 807  
808 808 R8A66597_DPRINT("%s\n", __func__);
809 809  
810   - memset(r8a66597, 0, sizeof(r8a66597));
  810 + memset(r8a66597, 0, sizeof(*r8a66597));
811 811 r8a66597->reg = CONFIG_R8A66597_BASE_ADDR;
812 812  
813 813 disable_controller(r8a66597);