From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932618Ab0JANXK (ORCPT ); Fri, 1 Oct 2010 09:23:10 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:65327 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932337Ab0JANXG (ORCPT ); Fri, 1 Oct 2010 09:23:06 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=Uja4WAFV87R4tucnCjefU5/azu4AkEGs4W2EFeMdyAOkrKfI7i2BtUmDdFV0NoFd5k FwuYsnhYy4SPDjXPmFpjhiHYylLLEOwIlR3TMRKHUt+3VLAC1MXkYRNc/QxDqHU3Gfdi kyYivwbpX/GN/EHxNrXNonZxm4zh0v7CibWx4= Date: Fri, 1 Oct 2010 17:22:55 +0400 From: Anton Vorontsov To: Greg Kroah-Hartman Cc: Alan Cox , Andrew Morton , Tobias Klauser , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] altera_uart: Fix missing prototype for registering an early console Message-ID: <20101001132255.GG25897@oksana.dev.rtsoft.ru> References: <20101001132045.GA9649@oksana.dev.rtsoft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20101001132045.GA9649@oksana.dev.rtsoft.ru> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simply add an early_altera_uart_setup() prototype declaration, otherwise platform code have to do it in .c files, which is ugly. Signed-off-by: Anton Vorontsov --- include/linux/altera_uart.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/linux/altera_uart.h b/include/linux/altera_uart.h index c022c82..a10a907 100644 --- a/include/linux/altera_uart.h +++ b/include/linux/altera_uart.h @@ -5,6 +5,8 @@ #ifndef __ALTUART_H #define __ALTUART_H +#include + struct altera_uart_platform_uart { unsigned long mapbase; /* Physical address base */ unsigned int irq; /* Interrupt vector */ @@ -12,4 +14,6 @@ struct altera_uart_platform_uart { unsigned int bus_shift; /* Bus shift (address stride) */ }; +int __init early_altera_uart_setup(struct altera_uart_platform_uart *platp); + #endif /* __ALTUART_H */ -- 1.7.0.5