mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-23 20:24:26 +08:00
common: fix missing function pointer relocation in fixup_cmdtable()
In commit fa28bd2eef
patch v1 was applied
instead of v2. This is an incremental patch to update that commit
to version 2.
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
This commit is contained in:
parent
c1044a1ec1
commit
3668d8fa04
@ -479,7 +479,8 @@ void fixup_cmdtable(cmd_tbl_t *cmdtp, int size)
|
||||
#ifdef CONFIG_AUTO_COMPLETE
|
||||
if (cmdtp->complete) {
|
||||
addr = (ulong)(cmdtp->complete) + gd->reloc_off;
|
||||
cmdtp->complete = (char *)addr;
|
||||
cmdtp->complete =
|
||||
(int (*)(int, char * const [], char, int, char * []))addr;
|
||||
}
|
||||
#endif
|
||||
cmdtp++;
|
||||
|
Loading…
Reference in New Issue
Block a user