From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753814AbcALXt4 (ORCPT ); Tue, 12 Jan 2016 18:49:56 -0500 Received: from mail.kernel.org ([198.145.29.136]:35676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752961AbcALXty (ORCPT ); Tue, 12 Jan 2016 18:49:54 -0500 MIME-Version: 1.0 In-Reply-To: <1452627672-9482-6-git-send-email-peter@hurleysoftware.com> References: <1428515119-25248-1-git-send-email-peter@hurleysoftware.com> <1452627672-9482-1-git-send-email-peter@hurleysoftware.com> <1452627672-9482-6-git-send-email-peter@hurleysoftware.com> From: Rob Herring Date: Tue, 12 Jan 2016 17:49:32 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 05/11] of: earlycon: Initialize port fields from DT properties To: Peter Hurley Cc: Greg Kroah-Hartman , Masahiro Yamada , Grant Likely , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Kevin Cernekee , Jon Hunter , Sebastian Frias , Paul Burton Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 12, 2016 at 1:41 PM, Peter Hurley wrote: > Read the optional "reg-offset", "reg-shift", "reg-io-width" and endianness > properties and initialize the respective struct uart_port field if found. > > NB: These bindings are common to several drivers and the values merely > indicate the default value; the registering earlycon setup() method can > simply override the values if required. > > Signed-off-by: Peter Hurley > --- > diff --git a/drivers/tty/serial/earlycon.c b/drivers/tty/serial/earlycon.c > index 7509ee34d..03eac4a 100644 > --- a/drivers/tty/serial/earlycon.c > +++ b/drivers/tty/serial/earlycon.c > @@ -20,6 +20,10 @@ > #include > #include > > +#ifdef CONFIG_OF_EARLY_FLATTREE > +#include > +#endif I think you don't need the ifdef around this. > + > #ifdef CONFIG_FIX_EARLYCON_MEM > #include > #endif