From: Peter Hurley Date: Thu, 6 Nov 2014 14:06:12 +0000 (-0500) Subject: serial: pl011: Fix build breakage with !CONFIG_DMA_ENGINE X-Git-Tag: omap-for-v3.19/fixes-rc1~86^2~109 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36f339d136f3b6e91235be619a88289a5f980450;p=pandora-kernel.git serial: pl011: Fix build breakage with !CONFIG_DMA_ENGINE Commit 479e9b94fdce7bc4 ("serial: Refactor uart_flush_buffer() from uart_close") refactored the uart_flush_buffer() in uart_close() into those drivers that define a flush_buffer() method. However, in the amba-pl011 driver configured without CONFIG_DMA_ENGINE, flush_buffer() is a NULL method, so the direct call fails to compile. Check and call the flush_buffer() method through the ops table instead. Reported-by: Fengguang Wu Cc: Russell King Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed