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