Skip to content

Commit 4babaa0

Browse files
Marek Vasuttrini
Marek Vasut
authored andcommitted
post: Remove unused NEEDS_MANUAL_RELOC code bits
The last user of the NEEDS_MANUAL_RELOC has been removed in commit 26af162 ("arch: m68k: Implement relocation") Remove now unused NEEDS_MANUAL_RELOC code. Signed-off-by: Marek Vasut <[email protected]>
1 parent 3bb917e commit 4babaa0

File tree

3 files changed

+0
-56
lines changed

3 files changed

+0
-56
lines changed

doc/README.POST

-5
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@ The POST layer will export the following interface routines:
138138
mode the test is executed in (power-on, normal, power-fail,
139139
manual).
140140

141-
o) void post_reloc(ulong offset);
142-
143-
This routine will be called from board_init_r() and will
144-
relocate the POST test table.
145-
146141
o) int post_info(char *name);
147142

148143
This routine will print the list of all POST tests that can be

include/post.h

-3
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ void post_bootmode_clear (void);
105105
int post_run (char *name, int flags);
106106
int post_info (char *name);
107107
int post_log (char *format, ...);
108-
#ifdef CONFIG_NEEDS_MANUAL_RELOC
109-
void post_reloc (void);
110-
#endif
111108
unsigned long post_time_ms (unsigned long base);
112109

113110
/**

post/post.c

-48
Original file line numberDiff line numberDiff line change
@@ -416,54 +416,6 @@ int post_log(char *format, ...)
416416
return 0;
417417
}
418418

419-
#ifdef CONFIG_NEEDS_MANUAL_RELOC
420-
void post_reloc(void)
421-
{
422-
unsigned int i;
423-
424-
/*
425-
* We have to relocate the test table manually
426-
*/
427-
for (i = 0; i < post_list_size; i++) {
428-
ulong addr;
429-
struct post_test *test = post_list + i;
430-
431-
if (test->name) {
432-
addr = (ulong)(test->name) + gd->reloc_off;
433-
test->name = (char *)addr;
434-
}
435-
436-
if (test->cmd) {
437-
addr = (ulong)(test->cmd) + gd->reloc_off;
438-
test->cmd = (char *)addr;
439-
}
440-
441-
if (test->desc) {
442-
addr = (ulong)(test->desc) + gd->reloc_off;
443-
test->desc = (char *)addr;
444-
}
445-
446-
if (test->test) {
447-
addr = (ulong)(test->test) + gd->reloc_off;
448-
test->test = (int (*)(int flags)) addr;
449-
}
450-
451-
if (test->init_f) {
452-
addr = (ulong)(test->init_f) + gd->reloc_off;
453-
test->init_f = (int (*)(void)) addr;
454-
}
455-
456-
if (test->reloc) {
457-
addr = (ulong)(test->reloc) + gd->reloc_off;
458-
test->reloc = (void (*)(void)) addr;
459-
460-
test->reloc();
461-
}
462-
}
463-
}
464-
#endif
465-
466-
467419
/*
468420
* Some tests (e.g. SYSMON) need the time when post_init_f started,
469421
* but we cannot use get_timer() at this point.

0 commit comments

Comments
 (0)