serial: amba-pl011: move variable into CONFIG_DMA_ENGINE conditional
authorLino Sanfilippo <l.sanfilippo@kunbus.com>
Sun, 7 Apr 2024 00:27:07 +0000 (02:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Apr 2024 15:07:10 +0000 (17:07 +0200)
commit255abd49f18533300bc5f20d7dce77a0a4479f58
treecacf5b8588a5e9ae350c10134bcb236e0e2d2e80
parent838022def8ef2b676d6f3c19cad9185ce8046008
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>
drivers/tty/serial/amba-pl011.c