aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/of_serial.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/serial/of_serial.c b/drivers/serial/of_serial.c
index 7ffdaeaf0545..d7752af1c7ec 100644
--- a/drivers/serial/of_serial.c
+++ b/drivers/serial/of_serial.c
@@ -75,15 +75,13 @@ static int __devinit of_platform_serial_probe(struct of_device *ofdev,
75 goto out; 75 goto out;
76 76
77 switch (port_type) { 77 switch (port_type) {
78 case PORT_UNKNOWN:
79 dev_info(&ofdev->dev, "Unknown serial port found, "
80 "attempting to use 8250 driver\n");
81 /* fallthrough */
82 case PORT_8250 ... PORT_MAX_8250: 78 case PORT_8250 ... PORT_MAX_8250:
83 ret = serial8250_register_port(&port); 79 ret = serial8250_register_port(&port);
84 break; 80 break;
85 default: 81 default:
86 /* need to add code for these */ 82 /* need to add code for these */
83 case PORT_UNKNOWN:
84 dev_info(&ofdev->dev, "Unknown serial port found, ignored\n");
87 ret = -ENODEV; 85 ret = -ENODEV;
88 break; 86 break;
89 } 87 }