sparc: i8042-sparcio.h: fix warning

drivers/input/serio/i8042-sparcio.h:95: warning: 'sparc_i8042_driver'
defined but not used

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Alexander Beregalov and committed by David S. Miller 8c6a5cad 0967d61e

+13 -6
+13 -6
drivers/input/serio/i8042-sparcio.h
··· 41 41 writeb(val, kbd_iobase + 0x64UL); 42 42 } 43 43 44 + #ifdef CONFIG_PCI 45 + 44 46 #define OBP_PS2KBD_NAME1 "kb_ps2" 45 47 #define OBP_PS2KBD_NAME2 "keyboard" 46 48 #define OBP_PS2MS_NAME1 "kdmouse" ··· 103 101 104 102 static int __init i8042_platform_init(void) 105 103 { 106 - #ifndef CONFIG_PCI 107 - return -ENODEV; 108 - #else 109 104 struct device_node *root = of_find_node_by_path("/"); 110 105 111 106 if (!strcmp(root->name, "SUNW,JavaStation-1")) { ··· 130 131 i8042_reset = 1; 131 132 132 133 return 0; 133 - #endif /* CONFIG_PCI */ 134 134 } 135 135 136 136 static inline void i8042_platform_exit(void) 137 137 { 138 - #ifdef CONFIG_PCI 139 138 struct device_node *root = of_find_node_by_path("/"); 140 139 141 140 if (strcmp(root->name, "SUNW,JavaStation-1")) 142 141 of_unregister_driver(&sparc_i8042_driver); 143 - #endif 144 142 } 143 + 144 + #else /* !CONFIG_PCI */ 145 + static int __init i8042_platform_init(void) 146 + { 147 + return -ENODEV; 148 + } 149 + 150 + static inline void i8042_platform_exit(void) 151 + { 152 + } 153 + #endif /* !CONFIG_PCI */ 145 154 146 155 #endif /* _I8042_SPARCIO_H */