aboutsummaryrefslogtreecommitdiff
path: root/src/superio/smsc/sch4037/sch4037_early_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio/smsc/sch4037/sch4037_early_init.c')
-rw-r--r--src/superio/smsc/sch4037/sch4037_early_init.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/superio/smsc/sch4037/sch4037_early_init.c b/src/superio/smsc/sch4037/sch4037_early_init.c
index 29517ed662..099e5f27c6 100644
--- a/src/superio/smsc/sch4037/sch4037_early_init.c
+++ b/src/superio/smsc/sch4037/sch4037_early_init.c
@@ -19,21 +19,24 @@
#include <arch/io.h>
+#include <device/pnp.h>
+#include <stdint.h>
+
#include "sch4037.h"
-static inline void pnp_enter_conf_state(device_t dev)
+static void pnp_enter_conf_state(device_t dev)
{
- unsigned port = dev>>8;
+ unsigned port = dev >> 8;
outb(0x55, port);
}
static void pnp_exit_conf_state(device_t dev)
{
- unsigned port = dev>>8;
+ unsigned port = dev >> 8;
outb(0xaa, port);
}
-static inline void sch4037_early_init(unsigned port)
+void sch4037_early_init(unsigned port)
{
device_t dev;