From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935194Ab1JERXX (ORCPT ); Wed, 5 Oct 2011 13:23:23 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:38499 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934962Ab1JERXV (ORCPT ); Wed, 5 Oct 2011 13:23:21 -0400 Subject: [PATCH] devicetree: fix build error on drivers/tty/serial/altera_jtaguart.c To: devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org From: Grant Likely Cc: Tobias Klauser , Ben Dooks , Alan Cox Date: Wed, 05 Oct 2011 11:23:16 -0600 Message-ID: <20111005172223.2949.66623.stgit@ponder> User-Agent: StGit/0.15 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the following build error caused by commit 85888069cf5d ("tty: use of_match_ptr() for of_match_table entry"). The problem was a missing #include which is where of_match_ptr() is defined. drivers/tty/serial/altera_jtaguart.c:483:3: error: implicit declaration of function 'of_match_ptr' [-Werror=implicit-function-declaration] drivers/tty/serial/altera_jtaguart.c:483:34: error: 'altera_jtaguart_match' undeclared here (not in a function) Signed-off-by: Grant Likely Cc: Ben Dooks Cc: Tobias Klauser (maintainer:ALTERA UART/JTAG...) Cc: Alan Cox (maintainer:SERIAL DRIVERS) --- This fixes a problem in the devicetree/next branch and I've already committed the change. I posting it to the list for completeness. g. drivers/tty/serial/altera_jtaguart.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/tty/serial/altera_jtaguart.c b/drivers/tty/serial/altera_jtaguart.c index 2075200..af46c56 100644 --- a/drivers/tty/serial/altera_jtaguart.c +++ b/drivers/tty/serial/altera_jtaguart.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include