patch-2.4.20 linux-2.4.20/arch/m68k/hp300/config.c
Next file: linux-2.4.20/arch/m68k/hp300/hil.c
Previous file: linux-2.4.20/arch/m68k/config.in
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Thu Nov 28 15:53:09 2002
- Orig file:
linux-2.4.19/arch/m68k/hp300/config.c
- Orig date:
Thu Aug 26 12:42:31 1999
diff -urN linux-2.4.19/arch/m68k/hp300/config.c linux-2.4.20/arch/m68k/hp300/config.c
@@ -17,7 +17,6 @@
#include <linux/init.h>
#include <asm/machdep.h>
#include <asm/blinken.h>
-#include <asm/io.h> /* readb() and writeb() */
#include <asm/hwtest.h> /* hwreg_present() */
#include "ints.h"
@@ -29,10 +28,9 @@
#ifdef CONFIG_VT
extern int hp300_keyb_init(void);
-#else
-/* Dummy function for when there is no keyboard. */
-int __init hp300_keyb_init(void)
+static int hp300_kbdrate(struct kbd_repeat *k)
{
+ return 0;
}
#endif
@@ -46,15 +44,6 @@
}
#endif
-static int hp300_kbdrate(struct kbd_repeat *k)
-{
- return 0;
-}
-
-static void hp300_kbd_leds(unsigned int leds)
-{
-}
-
static void hp300_get_model(char *model)
{
strcpy(model, "HP9000/300");
@@ -63,9 +52,10 @@
void __init config_hp300(void)
{
mach_sched_init = hp300_sched_init;
+#ifdef CONFIG_VT
mach_keyb_init = hp300_keyb_init;
mach_kbdrate = hp300_kbdrate;
- mach_kbd_leds = hp300_kbd_leds;
+#endif
mach_init_IRQ = hp300_init_IRQ;
mach_request_irq = hp300_request_irq;
mach_free_irq = hp300_free_irq;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)