Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -20
+2 -20
arch/xtensa/platforms/iss/setup.c
··· 31 31 32 32 #include <asm/platform.h> 33 33 #include <asm/bootparam.h> 34 + #include <asm/setup.h> 34 35 35 36 #include <platform/simcall.h> 36 37 37 38 38 39 void __init platform_init(bp_tag_t* bootparam) 39 40 { 40 - 41 41 } 42 42 43 43 void platform_halt(void) ··· 59 59 /* control never gets here */ 60 60 } 61 61 62 - extern void iss_net_poll(void); 63 - 64 - const char twirl[]="|/-\\|/-\\"; 65 - 66 62 void platform_heartbeat(void) 67 63 { 68 - #if 0 69 - static int i = 0, j = 0; 70 - 71 - if (--i < 0) { 72 - i = 99; 73 - printk("\r%c\r", twirl[j++]); 74 - if (j == 8) 75 - j = 0; 76 - } 77 - #endif 78 64 } 79 - 80 - 81 65 82 66 static int 83 67 iss_panic_event(struct notifier_block *this, unsigned long event, void *ptr) ··· 71 87 } 72 88 73 89 static struct notifier_block iss_panic_block = { 74 - iss_panic_event, 75 - NULL, 76 - 0 90 + .notifier_call = iss_panic_event, 77 91 }; 78 92 79 93 void __init platform_setup(char **p_cmdline)