Commit 3bb5534853dbb1e445a9b26ecab8ad331ff14a7e

Authored by Ajay Kumar Gupta
Committed by Felipe Balbi
1 parent 1f3f7eceff

usb: musb: am335x: fix pdev resource bug

We are overwriting the resource->name to "mc" so that musb_core.c
can understand it but this is also changing the platform device's
resource->name as the "name" address remains same.

Fixing the same by changing the resource->name field of local
structure only.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

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

drivers/usb/musb/musb_dsps.c
... ... @@ -479,9 +479,9 @@
479 479 ret = -ENODEV;
480 480 goto err0;
481 481 }
482   - strcpy((u8 *)res->name, "mc");
483 482 res->parent = NULL;
484 483 resources[1] = *res;
  484 + resources[1].name = "mc";
485 485  
486 486 /* allocate the child platform device */
487 487 musb = platform_device_alloc("musb-hdrc", -1);