arm: mach-k3: am642_init: Correct the length of the host string to 5 instead of 4
While calculating the length of the property value to be replaced with,
also include the "\0" character. This makes the length of the new property
value "host" to be 5 and not 4.
Fixes: d0d92256cb ("arm: mach-k3: am642_init: Fix the length of new property value in fdt_find_and_setprop()")
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
This commit is contained in:
parent
2e99ef2e23
commit
c0abb51a28
|
|
@ -97,7 +97,7 @@ static int fixup_usb_boot(const void *fdt_blob)
|
|||
*/
|
||||
ret = fdt_find_and_setprop((void *)fdt_blob,
|
||||
"/bus@f4000/cdns-usb@f900000/usb@f400000",
|
||||
"dr_mode", "host", 4, 0);
|
||||
"dr_mode", "host", 5, 0);
|
||||
if (ret)
|
||||
printf("%s: fdt_find_and_setprop() failed:%d\n",
|
||||
__func__, ret);
|
||||
|
|
|
|||
Loading…
Reference in New Issue