Commit 0795dbcc authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

m68k/amiga/: possible cleanups

This patch contains the following possible cleanups:
- amiints.c: add a proper prototype for amiga_init_IRQ() in
             include/asm-m68k/amigaints.h
- make the following needlessly global code static:
  - config.c: amiga_model
  - config.c: amiga_psfreq
  - config.c: amiga_serial_console_write()
- #if 0 the following unused functions:
  - config.c: amiga_serial_puts()
  - config.c: amiga_serial_console_wait_key()
  - config.c: amiga_serial_gets()
- remove the following unused variable:
  - config.c: amiga_masterclock
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 880e5e21
...@@ -36,14 +36,11 @@ ...@@ -36,14 +36,11 @@
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/io.h> #include <asm/io.h>
unsigned long amiga_model; static unsigned long amiga_model;
EXPORT_SYMBOL(amiga_model);
unsigned long amiga_eclock; unsigned long amiga_eclock;
EXPORT_SYMBOL(amiga_eclock); EXPORT_SYMBOL(amiga_eclock);
unsigned long amiga_masterclock;
unsigned long amiga_colorclock; unsigned long amiga_colorclock;
EXPORT_SYMBOL(amiga_colorclock); EXPORT_SYMBOL(amiga_colorclock);
...@@ -53,7 +50,7 @@ EXPORT_SYMBOL(amiga_chipset); ...@@ -53,7 +50,7 @@ EXPORT_SYMBOL(amiga_chipset);
unsigned char amiga_vblank; unsigned char amiga_vblank;
EXPORT_SYMBOL(amiga_vblank); EXPORT_SYMBOL(amiga_vblank);
unsigned char amiga_psfreq; static unsigned char amiga_psfreq;
struct amiga_hw_present amiga_hw_present; struct amiga_hw_present amiga_hw_present;
EXPORT_SYMBOL(amiga_hw_present); EXPORT_SYMBOL(amiga_hw_present);
...@@ -94,8 +91,6 @@ static char *amiga_models[] __initdata = { ...@@ -94,8 +91,6 @@ static char *amiga_models[] __initdata = {
static char amiga_model_name[13] = "Amiga "; static char amiga_model_name[13] = "Amiga ";
static void amiga_sched_init(irq_handler_t handler); static void amiga_sched_init(irq_handler_t handler);
/* amiga specific irq functions */
extern void amiga_init_IRQ(void);
static void amiga_get_model(char *model); static void amiga_get_model(char *model);
static int amiga_get_hardware_list(char *buffer); static int amiga_get_hardware_list(char *buffer);
/* amiga specific timer functions */ /* amiga specific timer functions */
...@@ -109,8 +104,6 @@ static void amiga_reset(void); ...@@ -109,8 +104,6 @@ static void amiga_reset(void);
extern void amiga_init_sound(void); extern void amiga_init_sound(void);
static void amiga_mem_console_write(struct console *co, const char *b, static void amiga_mem_console_write(struct console *co, const char *b,
unsigned int count); unsigned int count);
void amiga_serial_console_write(struct console *co, const char *s,
unsigned int count);
#ifdef CONFIG_HEARTBEAT #ifdef CONFIG_HEARTBEAT
static void amiga_heartbeat(int on); static void amiga_heartbeat(int on);
#endif #endif
...@@ -420,8 +413,7 @@ void __init config_amiga(void) ...@@ -420,8 +413,7 @@ void __init config_amiga(void)
mach_heartbeat = amiga_heartbeat; mach_heartbeat = amiga_heartbeat;
#endif #endif
/* Fill in the clock values (based on the 700 kHz E-Clock) */ /* Fill in the clock value (based on the 700 kHz E-Clock) */
amiga_masterclock = 40*amiga_eclock; /* 28 MHz */
amiga_colorclock = 5*amiga_eclock; /* 3.5 MHz */ amiga_colorclock = 5*amiga_eclock; /* 3.5 MHz */
/* clear all DMA bits */ /* clear all DMA bits */
...@@ -819,7 +811,7 @@ static void amiga_serial_putc(char c) ...@@ -819,7 +811,7 @@ static void amiga_serial_putc(char c)
; ;
} }
void amiga_serial_console_write(struct console *co, const char *s, static void amiga_serial_console_write(struct console *co, const char *s,
unsigned int count) unsigned int count)
{ {
while (count--) { while (count--) {
...@@ -829,7 +821,7 @@ void amiga_serial_console_write(struct console *co, const char *s, ...@@ -829,7 +821,7 @@ void amiga_serial_console_write(struct console *co, const char *s,
} }
} }
#ifdef CONFIG_SERIAL_CONSOLE #if 0
void amiga_serial_puts(const char *s) void amiga_serial_puts(const char *s)
{ {
amiga_serial_console_write(NULL, s, strlen(s)); amiga_serial_console_write(NULL, s, strlen(s));
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
* Different Amiga models * Different Amiga models
*/ */
extern unsigned long amiga_model;
#define AMI_UNKNOWN (0) #define AMI_UNKNOWN (0)
#define AMI_500 (1) #define AMI_500 (1)
#define AMI_500PLUS (2) #define AMI_500PLUS (2)
...@@ -59,11 +57,9 @@ extern unsigned long amiga_chipset; ...@@ -59,11 +57,9 @@ extern unsigned long amiga_chipset;
*/ */
extern unsigned long amiga_eclock; /* 700 kHz E Peripheral Clock */ extern unsigned long amiga_eclock; /* 700 kHz E Peripheral Clock */
extern unsigned long amiga_masterclock; /* 28 MHz Master Clock */
extern unsigned long amiga_colorclock; /* 3.5 MHz Color Clock */ extern unsigned long amiga_colorclock; /* 3.5 MHz Color Clock */
extern unsigned long amiga_chip_size; /* Chip RAM Size (bytes) */ extern unsigned long amiga_chip_size; /* Chip RAM Size (bytes) */
extern unsigned char amiga_vblank; /* VBLANK Frequency */ extern unsigned char amiga_vblank; /* VBLANK Frequency */
extern unsigned char amiga_psfreq; /* Power Supply Frequency */
#define AMIGAHW_DECLARE(name) unsigned name : 1 #define AMIGAHW_DECLARE(name) unsigned name : 1
......
...@@ -98,6 +98,8 @@ ...@@ -98,6 +98,8 @@
#define CIA_ICR_ALL 0x1f #define CIA_ICR_ALL 0x1f
#define CIA_ICR_SETCLR 0x80 #define CIA_ICR_SETCLR 0x80
extern void amiga_init_IRQ(void);
/* to access the interrupt control registers of CIA's use only /* to access the interrupt control registers of CIA's use only
** these functions, they behave exactly like the amiga os routines ** these functions, they behave exactly like the amiga os routines
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment