summaryrefslogtreecommitdiff
path: root/arch/alpha/kernel/smc37c669.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/alpha/kernel/smc37c669.c')
-rw-r--r--arch/alpha/kernel/smc37c669.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/alpha/kernel/smc37c669.c b/arch/alpha/kernel/smc37c669.c
index c803fc76ae4f..a5a6ed97a6ce 100644
--- a/arch/alpha/kernel/smc37c669.c
+++ b/arch/alpha/kernel/smc37c669.c
@@ -10,7 +10,8 @@
#include <asm/hwrpb.h>
#include <asm/io.h>
-#include <asm/segment.h>
+
+#include "proto.h"
#if 0
# define DBG_DEVS(args) printk args
@@ -2007,11 +2008,8 @@ static void __init SMC37c669_config_mode(
static unsigned char __init SMC37c669_read_config(
unsigned char index )
{
- unsigned char data;
-
- wb( &SMC37c669->index_port, index );
- data = rb( &SMC37c669->data_port );
- return data;
+ wb(&SMC37c669->index_port, index);
+ return rb(&SMC37c669->data_port);
}
/*
@@ -2434,13 +2432,15 @@ int __init smcc669_write( struct FILE *fp, int size, int number, unsigned char *
}
#endif
-void __init
+#if SMC_DEBUG
+static void __init
SMC37c669_dump_registers(void)
{
int i;
for (i = 0; i <= 0x29; i++)
printk("-- CR%02x : %02x\n", i, SMC37c669_read_config(i));
}
+#endif
/*+
* ============================================================================
* = SMC_init - SMC37c669 Super I/O controller initialization =