aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-11-16 10:48:13 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-13 22:59:48 -0500
commit4e33870b3bb691996354a8f9e8f69458b4fc34d9 (patch)
treefb2392ac080255868c0939d6cde0a36c06718c87 /drivers/tty
parentd1b5c87fa8058a3f477ae05555916dd1cea934ad (diff)
serial: of: CONFIG_SERIAL_8250 is always set
The only other user of this code was the nwp-serial driver, but that is now gone, so we can remove a couple of #ifdef statments in this driver. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/of_serial.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c
index 920468bf4e83..d66fd24f87cf 100644
--- a/drivers/tty/serial/of_serial.c
+++ b/drivers/tty/serial/of_serial.c
@@ -21,10 +21,6 @@
21#include <linux/nwpserial.h> 21#include <linux/nwpserial.h>
22#include <linux/clk.h> 22#include <linux/clk.h>
23 23
24#ifdef CONFIG_SERIAL_8250_MODULE
25#define CONFIG_SERIAL_8250 CONFIG_SERIAL_8250_MODULE
26#endif
27
28#include "8250/8250.h" 24#include "8250/8250.h"
29 25
30struct of_serial_info { 26struct of_serial_info {
@@ -198,7 +194,6 @@ static int of_platform_serial_probe(struct platform_device *ofdev)
198 goto out; 194 goto out;
199 195
200 switch (port_type) { 196 switch (port_type) {
201#ifdef CONFIG_SERIAL_8250
202 case PORT_8250 ... PORT_MAX_8250: 197 case PORT_8250 ... PORT_MAX_8250:
203 { 198 {
204 struct uart_8250_port port8250; 199 struct uart_8250_port port8250;
@@ -215,7 +210,6 @@ static int of_platform_serial_probe(struct platform_device *ofdev)
215 ret = serial8250_register_8250_port(&port8250); 210 ret = serial8250_register_8250_port(&port8250);
216 break; 211 break;
217 } 212 }
218#endif
219 default: 213 default:
220 /* need to add code for these */ 214 /* need to add code for these */
221 case PORT_UNKNOWN: 215 case PORT_UNKNOWN:
@@ -243,11 +237,9 @@ static int of_platform_serial_remove(struct platform_device *ofdev)
243{ 237{
244 struct of_serial_info *info = platform_get_drvdata(ofdev); 238 struct of_serial_info *info = platform_get_drvdata(ofdev);
245 switch (info->type) { 239 switch (info->type) {
246#ifdef CONFIG_SERIAL_8250
247 case PORT_8250 ... PORT_MAX_8250: 240 case PORT_8250 ... PORT_MAX_8250:
248 serial8250_unregister_port(info->line); 241 serial8250_unregister_port(info->line);
249 break; 242 break;
250#endif
251 default: 243 default:
252 /* need to add code for these */ 244 /* need to add code for these */
253 break; 245 break;
@@ -260,7 +252,6 @@ static int of_platform_serial_remove(struct platform_device *ofdev)
260} 252}
261 253
262#ifdef CONFIG_PM_SLEEP 254#ifdef CONFIG_PM_SLEEP
263#ifdef CONFIG_SERIAL_8250
264static void of_serial_suspend_8250(struct of_serial_info *info) 255static void of_serial_suspend_8250(struct of_serial_info *info)
265{ 256{
266 struct uart_8250_port *port8250 = serial8250_get_port(info->line); 257 struct uart_8250_port *port8250 = serial8250_get_port(info->line);
@@ -281,15 +272,6 @@ static void of_serial_resume_8250(struct of_serial_info *info)
281 272
282 serial8250_resume_port(info->line); 273 serial8250_resume_port(info->line);
283} 274}
284#else
285static inline void of_serial_suspend_8250(struct of_serial_info *info)
286{
287}
288
289static inline void of_serial_resume_8250(struct of_serial_info *info)
290{
291}
292#endif
293 275
294static int of_serial_suspend(struct device *dev) 276static int of_serial_suspend(struct device *dev)
295{ 277{