Commit 3668d8fa0417a3082aa57dd5e0db8fbe887c31e0

Authored by Daniel Schwierzeck
Committed by Wolfgang Denk
1 parent c1044a1ec1

common: fix missing function pointer relocation in fixup_cmdtable()

In commit fa28bd2eef588ec2048ccafedb2b384d5a355858 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>

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

... ... @@ -479,7 +479,8 @@
479 479 #ifdef CONFIG_AUTO_COMPLETE
480 480 if (cmdtp->complete) {
481 481 addr = (ulong)(cmdtp->complete) + gd->reloc_off;
482   - cmdtp->complete = (char *)addr;
  482 + cmdtp->complete =
  483 + (int (*)(int, char * const [], char, int, char * []))addr;
483 484 }
484 485 #endif
485 486 cmdtp++;