From 73b18a225aaf9a8906a0a6157682e7c8858e0787 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Tue, 22 Jul 2003 10:56:18 -0700 Subject: [PATCH] [SPARC64]: Handle !CONFIG_PCI properly in sparc i8042 support. --- drivers/input/serio/i8042-sparcio.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/input/serio/i8042-sparcio.h b/drivers/input/serio/i8042-sparcio.h index 73aa6f34ec560..e0b8f32199936 100644 --- a/drivers/input/serio/i8042-sparcio.h +++ b/drivers/input/serio/i8042-sparcio.h @@ -1,8 +1,13 @@ #ifndef _I8042_SPARCIO_H #define _I8042_SPARCIO_H +#include +#include + +#ifdef CONFIG_PCI #include #include +#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 */ -- 2.53.0