|
@@ -1551,6 +1551,7 @@ static int __devinit atmel_serial_probe(struct platform_device *pdev)
|
|
if (ret)
|
|
if (ret)
|
|
goto err_add_port;
|
|
goto err_add_port;
|
|
|
|
|
|
|
|
+#ifdef CONFIG_SERIAL_ATMEL_CONSOLE
|
|
if (atmel_is_console_port(&port->uart)
|
|
if (atmel_is_console_port(&port->uart)
|
|
&& ATMEL_CONSOLE_DEVICE->flags & CON_ENABLED) {
|
|
&& ATMEL_CONSOLE_DEVICE->flags & CON_ENABLED) {
|
|
/*
|
|
/*
|
|
@@ -1559,6 +1560,7 @@ static int __devinit atmel_serial_probe(struct platform_device *pdev)
|
|
*/
|
|
*/
|
|
clk_disable(port->clk);
|
|
clk_disable(port->clk);
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
device_init_wakeup(&pdev->dev, 1);
|
|
device_init_wakeup(&pdev->dev, 1);
|
|
platform_set_drvdata(pdev, port);
|
|
platform_set_drvdata(pdev, port);
|