diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2019-12-15 11:48:51 +0100 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2020-01-31 21:17:28 +0100 |
commit | 64716b9ec5ba3342d3a9f0464d2abb48de65b327 (patch) | |
tree | c7f61505d3a6a2dac96a43edf64f803c13c65fc0 /arch/xtensa/platforms | |
parent | xtensa: clean up platform headers (diff) | |
download | linux-64716b9ec5ba3342d3a9f0464d2abb48de65b327.tar.xz linux-64716b9ec5ba3342d3a9f0464d2abb48de65b327.zip |
xtensa: drop empty platform_* functions from platforms
Provide missing default implementation for platform_init and drop copies
of default platform_init, platform_setup and platform_heartbeet from
platforms/*/setup.c
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/platforms')
-rw-r--r-- | arch/xtensa/platforms/iss/setup.c | 9 | ||||
-rw-r--r-- | arch/xtensa/platforms/xtfpga/setup.c | 16 |
2 files changed, 1 insertions, 24 deletions
diff --git a/arch/xtensa/platforms/iss/setup.c b/arch/xtensa/platforms/iss/setup.c index 554758823ff5..ed519aee0ec8 100644 --- a/arch/xtensa/platforms/iss/setup.c +++ b/arch/xtensa/platforms/iss/setup.c @@ -23,10 +23,6 @@ #include <platform/simcall.h> -void __init platform_init(bp_tag_t* bootparam) -{ -} - void platform_halt(void) { pr_info(" ** Called platform_halt() **\n"); @@ -38,6 +34,7 @@ void platform_power_off(void) pr_info(" ** Called platform_power_off() **\n"); simc_exit(0); } + void platform_restart(void) { /* Flush and reset the mmu, simulate a processor reset, and @@ -46,10 +43,6 @@ void platform_restart(void) /* control never gets here */ } -void platform_heartbeat(void) -{ -} - static int iss_panic_event(struct notifier_block *this, unsigned long event, void *ptr) { diff --git a/arch/xtensa/platforms/xtfpga/setup.c b/arch/xtensa/platforms/xtfpga/setup.c index b7e4580d3636..4f7d6142d41f 100644 --- a/arch/xtensa/platforms/xtfpga/setup.c +++ b/arch/xtensa/platforms/xtfpga/setup.c @@ -57,22 +57,6 @@ void platform_restart(void) /* control never gets here */ } -void __init platform_setup(char **cmdline) -{ -} - -/* early initialization */ - -void __init platform_init(bp_tag_t *first) -{ -} - -/* Heartbeat. */ - -void platform_heartbeat(void) -{ -} - #ifdef CONFIG_XTENSA_CALIBRATE_CCOUNT void __init platform_calibrate_ccount(void) |