Commit 73b18a22 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Handle !CONFIG_PCI properly in sparc i8042 support.

parent 284fe9f0
#ifndef _I8042_SPARCIO_H
#define _I8042_SPARCIO_H
#include <linux/config.h>
#include <asm/io.h>
#ifdef CONFIG_PCI
#include <asm/oplib.h>
#include <asm/ebus.h>
#endif
static int i8042_kbd_irq = -1;
static int i8042_aux_irq = -1;
......@@ -45,6 +50,9 @@ static inline void i8042_write_command(int val)
static int i8042_platform_init(void)
{
#ifndef CONFIG_PCI
return -1;
#else
char prop[128];
int len;
......@@ -95,11 +103,14 @@ static int i8042_platform_init(void)
i8042_reset = 1;
return 0;
#endif /* CONFIG_PCI */
}
static inline void i8042_platform_exit(void)
{
#ifdef CONFIG_PCI
iounmap((void *)kbd_iobase);
#endif
}
#endif /* _I8042_SPARCIO_H */
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