aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tty/serial/omap-serial.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c
index 45a25a01c44d..d60e001cf60f 100644
--- a/drivers/tty/serial/omap-serial.c
+++ b/drivers/tty/serial/omap-serial.c
@@ -43,8 +43,6 @@
43#include <plat/dmtimer.h> 43#include <plat/dmtimer.h>
44#include <plat/omap-serial.h> 44#include <plat/omap-serial.h>
45 45
46#define OMAP_UART_AUTOSUSPEND_DELAY -1
47
48static struct uart_omap_port *ui[OMAP_MAX_HSUART_PORTS]; 46static struct uart_omap_port *ui[OMAP_MAX_HSUART_PORTS];
49 47
50/* Forward declaration of functions */ 48/* Forward declaration of functions */
@@ -1376,8 +1374,8 @@ static int serial_omap_probe(struct platform_device *pdev)
1376 up->uart_dma.uart_dma_tx = dma_tx->start; 1374 up->uart_dma.uart_dma_tx = dma_tx->start;
1377 up->uart_dma.uart_dma_rx = dma_rx->start; 1375 up->uart_dma.uart_dma_rx = dma_rx->start;
1378 up->use_dma = 1; 1376 up->use_dma = 1;
1379 up->uart_dma.rx_buf_size = 4096; 1377 up->uart_dma.rx_buf_size = omap_up_info->dma_rx_buf_size;
1380 up->uart_dma.rx_timeout = 2; 1378 up->uart_dma.rx_timeout = omap_up_info->dma_rx_timeout;
1381 spin_lock_init(&(up->uart_dma.tx_lock)); 1379 spin_lock_init(&(up->uart_dma.tx_lock));
1382 spin_lock_init(&(up->uart_dma.rx_lock)); 1380 spin_lock_init(&(up->uart_dma.rx_lock));
1383 up->uart_dma.tx_dma_channel = OMAP_UART_DMA_CH_FREE; 1381 up->uart_dma.tx_dma_channel = OMAP_UART_DMA_CH_FREE;
@@ -1386,7 +1384,7 @@ static int serial_omap_probe(struct platform_device *pdev)
1386 1384
1387 pm_runtime_use_autosuspend(&pdev->dev); 1385 pm_runtime_use_autosuspend(&pdev->dev);
1388 pm_runtime_set_autosuspend_delay(&pdev->dev, 1386 pm_runtime_set_autosuspend_delay(&pdev->dev,
1389 OMAP_UART_AUTOSUSPEND_DELAY); 1387 omap_up_info->autosuspend_timeout);
1390 1388
1391 pm_runtime_irq_safe(&pdev->dev); 1389 pm_runtime_irq_safe(&pdev->dev);
1392 pm_runtime_enable(&pdev->dev); 1390 pm_runtime_enable(&pdev->dev);