mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
event: Convert arch_cpu_init_dm() to use events
Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -19,11 +19,6 @@
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
__weak int arch_cpu_init_dm(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int x86_tpl_init(void)
|
||||
{
|
||||
int ret;
|
||||
@@ -44,11 +39,6 @@ static int x86_tpl_init(void)
|
||||
debug("%s: arch_cpu_init() failed\n", __func__);
|
||||
return ret;
|
||||
}
|
||||
ret = arch_cpu_init_dm();
|
||||
if (ret) {
|
||||
debug("%s: arch_cpu_init_dm() failed\n", __func__);
|
||||
return ret;
|
||||
}
|
||||
preloader_console_init();
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user