diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2017-03-13 10:28:33 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-03-13 13:47:11 -0700 |
commit | 3ced97305ded104e0c2814241952e261997dbb65 (patch) | |
tree | 7c9ab3bd2b247b111e92b2a5904d476c9521c382 /arch/xtensa/platforms | |
parent | c470abd4fde40ea6a0846a2beab642a578c0b8cd (diff) | |
download | talos-obmc-linux-3ced97305ded104e0c2814241952e261997dbb65.tar.gz talos-obmc-linux-3ced97305ded104e0c2814241952e261997dbb65.zip |
xtensa: ISS: cleanup setup.c
Drop commented out code, unused extern definition, extra blank lines.
Rewrite iss_panic_block initialization in C99 style.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/platforms')
-rw-r--r-- | arch/xtensa/platforms/iss/setup.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/arch/xtensa/platforms/iss/setup.c b/arch/xtensa/platforms/iss/setup.c index 379aeddcc638..3742ee63282f 100644 --- a/arch/xtensa/platforms/iss/setup.c +++ b/arch/xtensa/platforms/iss/setup.c @@ -31,13 +31,13 @@ #include <asm/platform.h> #include <asm/bootparam.h> +#include <asm/setup.h> #include <platform/simcall.h> void __init platform_init(bp_tag_t* bootparam) { - } void platform_halt(void) @@ -59,26 +59,10 @@ void platform_restart(void) /* control never gets here */ } -extern void iss_net_poll(void); - -const char twirl[]="|/-\\|/-\\"; - void platform_heartbeat(void) { -#if 0 - static int i = 0, j = 0; - - if (--i < 0) { - i = 99; - printk("\r%c\r", twirl[j++]); - if (j == 8) - j = 0; - } -#endif } - - static int iss_panic_event(struct notifier_block *this, unsigned long event, void *ptr) { @@ -87,9 +71,7 @@ iss_panic_event(struct notifier_block *this, unsigned long event, void *ptr) } static struct notifier_block iss_panic_block = { - iss_panic_event, - NULL, - 0 + .notifier_call = iss_panic_event, }; void __init platform_setup(char **p_cmdline) |