Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932695AbcKIN3P (ORCPT ); Wed, 9 Nov 2016 08:29:15 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:65478 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752395AbcKIN2d (ORCPT ); Wed, 9 Nov 2016 08:28:33 -0500 From: Arnd Bergmann To: Greg Kroah-Hartman Cc: Arnd Bergmann , Jiri Slaby , Robert Jarzmik , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] serial: 8250_pxa: hide early console setup when disabled Date: Wed, 9 Nov 2016 14:27:00 +0100 Message-Id: <20161109132725.2072258-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:PKlqaKaq9VUCtKz43QlTCz5ye32EVzQZroKXdhGoN2kclEkCL/u jMmn0h5NjRaXbXJQc8jZ6T0KrSbizXIiJk4/KCXY4R7A6/tW2OADkDxnPk3FvrOOofoHUBY sYPPDgHyWMvVNIYfBOWcSeVMwVYeNIR360QXLHJqw8N1hFJW5gqU7Op9ALtxan9tiYxKEWB L9BtSr8uq81yVdnCEBe2g== X-UI-Out-Filterresults: notjunk:1;V01:K0:uF+g+J3bgI8=:+xpb5Hr5bXjRF8Y621Wo3K yGldaqGvTKzLWucoDHHrvBVI+5za+bobpbWjkbkvb5vH7CKH7XI/WZ4lHyejfDz5S90fO1BNc mNA/D2o7qT8Cw/zhh/T76aYgIRGTwzU7y9htWkFYkk3civxptDyU6OTzdw9DyGhsbGAENBdmu rJOUX+QJ1XVvgYMdOZMVIpMdhBE60qnXCnOM3Rara8mCMXl+bTUhy6uMTGOIFIF/MpeNaq0lG 05vMiXvG1iEn/B2dwtiv1+Yw2RTjtK3qGwI+in+1m/C9DuD5zpix+/Rla93XJlKstr3ldLFPx 1YkeAjQG2hphc5TrZoSZQIWd0h2AjiSaegNcm2o8SXCNVqxIhJztme6iPdk6WENeifAyN5uF4 G+Xb+xpDxIKuKGCR6I0t4Elfa6tL89TsMf3Xg22KiU9J7CqdbfndFs0jVE2H4QZgLfedWqp7p x9fZSmtti8vw+OK4YIfl8JoecosExJkNrWB09Feo91UK4bxLe5pXWXAcr4h0wyXwtGGx0lNBG AHbnY2/30ckk7uX21ax1VywA1Q70Rzk8yi3sXGffnOdahVdvxn4b2ZDC0FKK1z5TmSjJW8cbC b8lcKdbmO6hBI8fLnei7EODml77SJw2kApUuoy2gFu4niKlD1rO4BUGVDUCwwts16VtvBQlyF AROXRHfYvJm4/vVR5MD4o1C6qNVjtylseOGxvC3k0i6o1rTtuPeKKdntDmfAJeFXFcN4= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1219 Lines: 35 The newly added pxa glue driver for 8250 supports console output, but fails to build if the 8250 console is disabled: drivers/tty/serial/8250/8250_pxa.o: In function `early_serial_pxa_setup': 8250_pxa.c:(.init.text+0x50): undefined reference to `early_serial8250_setup' This adds an #ifdef like the other glue drivers have it. Signed-off-by: Arnd Bergmann --- drivers/tty/serial/8250/8250_pxa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/8250/8250_pxa.c b/drivers/tty/serial/8250/8250_pxa.c index 31f27d95d8b4..4d68731af534 100644 --- a/drivers/tty/serial/8250/8250_pxa.c +++ b/drivers/tty/serial/8250/8250_pxa.c @@ -170,6 +170,7 @@ static struct platform_driver serial_pxa_driver = { module_platform_driver(serial_pxa_driver); +#ifdef CONFIG_SERIAL_8250_CONSOLE static int __init early_serial_pxa_setup(struct earlycon_device *device, const char *options) { @@ -182,6 +183,7 @@ static int __init early_serial_pxa_setup(struct earlycon_device *device, return early_serial8250_setup(device, NULL); } OF_EARLYCON_DECLARE(early_pxa, "mrvl,pxa-uart", early_serial_pxa_setup); +#endif MODULE_AUTHOR("Sergei Ianovich"); MODULE_LICENSE("GPL"); -- 2.9.0