serial: pl011: Fix build breakage with !CONFIG_DMA_ENGINE
[pandora-kernel.git] / drivers / tty / serial / amba-pl011.c
index 8469b66..83c8f72 100644 (file)
@@ -1689,7 +1689,8 @@ static void pl011_shutdown(struct uart_port *port)
                        plat->exit();
        }
 
-       pl011_dma_flush_buffer(port);
+       if (uap->port.ops->flush_buffer)
+               uap->port.ops->flush_buffer(port);
 }
 
 static void