summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorQian Cai <cai@lca.pw>2019-09-17 09:19:00 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-04 14:58:05 +0200
commit38b101c6b036a7350b45f565147f8136cf8e12ca (patch)
tree28b3fa439b4f60315b20f6378dd862ec7b1ddcd1 /drivers/tty/serial
parent91daae03188e0dd1da3c1b599df4ce7539d5a69f (diff)
downloadlinux-38b101c6b036a7350b45f565147f8136cf8e12ca.tar.bz2
tty/amba-pl011: fix a -Wunused-function warning
pl011_dma_probe() is only used in pl011_dma_startup() which does only exist when CONFIG_DMA_ENGINE=y, so remove the unused dummy version to silence the warning. Signed-off-by: Qian Cai <cai@lca.pw> Link: https://lore.kernel.org/r/1568726340-4518-1-git-send-email-cai@lca.pw Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/amba-pl011.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index 3a7d1a66f79c..ae63266e181f 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -1236,10 +1236,6 @@ static inline bool pl011_dma_rx_running(struct uart_amba_port *uap)
#else
/* Blank functions if the DMA engine is not available */
-static inline void pl011_dma_probe(struct uart_amba_port *uap)
-{
-}
-
static inline void pl011_dma_remove(struct uart_amba_port *uap)
{
}