serial: fsl_lpuart: move DMA channel request to probe
authorStefan Agner <stefan@agner.ch>
Sat, 10 Jan 2015 08:33:45 +0000 (09:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:09:55 +0000 (10:09 -0800)
commit4a818c4396cb8f0d00b48921654e7918ed54f17f
tree347a40237562e477c33b9aa372e26be1486b9c82
parent5f1437f61a0b351d25b528c159360da3d5e8c77b
serial: fsl_lpuart: move DMA channel request to probe

Move the DMA channel request to probe to avoid requesting the DMA
channel on each opening of the ttyLPx device. This also fixes a
potential issue that TX channel is not freed when only RX channel
allocation fails. The DMA channels are now handled independently,
so one could use UART with DMA only in TX direction for instance.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c