Uwe Kleine-König
4238c00bb1
serial: imx: simplify tracking of dma being initialized
...
The .dma_is_inited member is only set to a value != 0 when the port's
startup function calls imx_uart_dma_init(). On shutdown of the port
imx_uart_dma_exit is called which sets the value back to 0. So
.dma_is_inited is always 0 when imx_startup() is called (assuming
.startup() and .shutdown() are correctly balanced) and the check for
!sport->dma_is_inited can go away.
This allows to replace .dma_is_inited by a variable local to
imx_startup.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Shawn Guo <shawnguo@kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2018-02-28 15:29:59 +01:00
..
2018-02-28 13:40:22 +01:00
2017-11-13 21:05:31 -08:00
2018-01-09 16:37:03 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2018-02-28 13:30:09 +01:00
2017-11-08 13:08:12 +01:00
2017-11-28 15:35:51 +01:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-28 16:04:57 +01:00
2017-11-08 13:08:12 +01:00
2017-11-15 11:36:08 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:07 -08:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2018-02-07 11:39:58 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-28 16:05:20 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:07 -08:00
2017-11-08 13:08:12 +01:00
2018-02-28 15:29:59 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-12-18 10:28:31 +01:00
2017-11-21 15:57:07 -08:00
2017-11-15 13:46:33 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2018-02-28 13:40:22 +01:00
2017-11-21 15:57:07 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-28 15:32:33 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:07 -08:00
2018-02-28 13:46:03 +01:00
2018-01-22 14:17:44 +01:00
2017-11-08 13:08:12 +01:00
2018-01-09 16:45:17 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-21 15:57:07 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:07 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2018-01-22 14:20:56 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2018-02-28 13:40:22 +01:00
2017-11-13 21:05:31 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:07 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-12-15 20:27:43 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00