diff options
| author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2015-01-01 11:49:11 -0500 |
|---|---|---|
| committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2015-01-11 05:38:45 -0500 |
| commit | a38eaa07a0ce4bdb5f79637fedefae276a567e72 (patch) | |
| tree | 65e193b4841be49564c47635d997a60a9283ec31 | |
| parent | 23b94210267185db51f0be8d7115eb49b63b064b (diff) | |
m68k/mvme147: config.c - Remove unused functions
Remove the function mvme147_init_console_port() that is not used
anywhere.
This was partially found by using a static code analysis program called
cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
[geert: Also remove now unused m147_scc_write(), scc_write(), scc_delay()]
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
| -rw-r--r-- | arch/m68k/mvme147/config.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/arch/m68k/mvme147/config.c b/arch/m68k/mvme147/config.c index 1bb3ce6634d3..e6a3b56c6481 100644 --- a/arch/m68k/mvme147/config.c +++ b/arch/m68k/mvme147/config.c | |||
| @@ -168,49 +168,3 @@ int mvme147_set_clock_mmss (unsigned long nowtime) | |||
| 168 | { | 168 | { |
| 169 | return 0; | 169 | return 0; |
| 170 | } | 170 | } |
| 171 | |||
| 172 | /*------------------- Serial console stuff ------------------------*/ | ||
| 173 | |||
| 174 | static void scc_delay (void) | ||
| 175 | { | ||
| 176 | int n; | ||
| 177 | volatile int trash; | ||
| 178 | |||
| 179 | for (n = 0; n < 20; n++) | ||
| 180 | trash = n; | ||
| 181 | } | ||
| 182 | |||
| 183 | static void scc_write (char ch) | ||
| 184 | { | ||
| 185 | volatile char *p = (volatile char *)M147_SCC_A_ADDR; | ||
| 186 | |||
| 187 | do { | ||
| 188 | scc_delay(); | ||
| 189 | } | ||
| 190 | while (!(*p & 4)); | ||
| 191 | scc_delay(); | ||
| 192 | *p = 8; | ||
| 193 | scc_delay(); | ||
| 194 | *p = ch; | ||
| 195 | } | ||
| 196 | |||
| 197 | |||
| 198 | void m147_scc_write (struct console *co, const char *str, unsigned count) | ||
| 199 | { | ||
| 200 | unsigned long flags; | ||
| 201 | |||
| 202 | local_irq_save(flags); | ||
| 203 | |||
| 204 | while (count--) | ||
| 205 | { | ||
| 206 | if (*str == '\n') | ||
| 207 | scc_write ('\r'); | ||
| 208 | scc_write (*str++); | ||
| 209 | } | ||
| 210 | local_irq_restore(flags); | ||
| 211 | } | ||
| 212 | |||
| 213 | void mvme147_init_console_port (struct console *co, int cflag) | ||
| 214 | { | ||
| 215 | co->write = m147_scc_write; | ||
| 216 | } | ||
