diff options
author | Lino Sanfilippo <l.sanfilippo@kunbus.com> | 2024-04-07 02:27:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-09 17:07:10 +0200 |
commit | 255abd49f18533300bc5f20d7dce77a0a4479f58 (patch) | |
tree | cacf5b8588a5e9ae350c10134bcb236e0e2d2e80 /drivers/tty | |
parent | 838022def8ef2b676d6f3c19cad9185ce8046008 (diff) | |
download | linux-255abd49f18533300bc5f20d7dce77a0a4479f58.tar.gz linux-255abd49f18533300bc5f20d7dce77a0a4479f58.tar.bz2 linux-255abd49f18533300bc5f20d7dce77a0a4479f58.zip |
serial: amba-pl011: move variable into CONFIG_DMA_ENGINE conditional
Variable dmacr is only used if DMA is enabled, so move it into the
CONFIG_DMA_ENGINE conditional.
Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>
Link: https://lore.kernel.org/r/20240407002709.16224-3-l.sanfilippo@kunbus.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/amba-pl011.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 76d2078ec086..8b1644f5411e 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -256,7 +256,6 @@ struct uart_amba_port { const u16 *reg_offset; struct clk *clk; const struct vendor_data *vendor; - unsigned int dmacr; /* dma control reg */ unsigned int im; /* interrupt mask */ unsigned int old_status; unsigned int fifosize; /* vendor-specific */ @@ -266,6 +265,7 @@ struct uart_amba_port { unsigned int rs485_tx_drain_interval; /* usecs */ #ifdef CONFIG_DMA_ENGINE /* DMA stuff */ + unsigned int dmacr; /* dma control reg */ bool using_tx_dma; bool using_rx_dma; struct pl011_dmarx_data dmarx; |