From patchwork Wed Nov 9 13:27:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101543 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp196292qge; Wed, 9 Nov 2016 05:29:16 -0800 (PST) X-Received: by 10.99.157.129 with SMTP id i123mr14958023pgd.148.1478698156220; Wed, 09 Nov 2016 05:29:16 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si23050295pfd.81.2016.11.09.05.29.16; Wed, 09 Nov 2016 05:29:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932779AbcKIN3N (ORCPT + 2 others); Wed, 9 Nov 2016 08:29:13 -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 Received: from wuerfel.lan. ([78.43.20.153]) by mrelayeu.kundenserver.de (mreue003) with ESMTPA (Nemesis) id 0MTc9s-1cDIbB07oe-00QPHq; Wed, 09 Nov 2016 14:27:29 +0100 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-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org 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(+) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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");