From patchwork Fri Aug 9 14:40:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 170936 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp10101927ile; Fri, 9 Aug 2019 07:42:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzStVEkDMp4HyKn1I28DUSAoHsIh3vWikQuuyFyp/Blr28lKKbiUj00A4QPb8wKaYtSLsiC X-Received: by 2002:a65:60cd:: with SMTP id r13mr18294481pgv.315.1565361770941; Fri, 09 Aug 2019 07:42:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565361770; cv=none; d=google.com; s=arc-20160816; b=x+6SVZlWQUk0bMRYL2KoMprbrAcVNYqr8Rph/G//CZmURLTc8z7CqW9GyWgO8MUWpi krfobHOt7KSvVak84fdqxKFdukmmxvtIYaCh9mNdKo12Oqg0320GM+U+Zmat0Y4a/N6S y/CjY8V7G9forbrFzS/ydlaJkmfpv7Iomd6FgeZAw4wupnR5xuKRRywVF8EOPU0qn7Vm DI/3Zy202CWk0iyoI8F46oLKRWsScb78yrOUWZaswVdrlV+vdE9YeLh2OnCjDwNbp/p9 AUY+Jf3q5fNOS2h1UXvwVrlGUxTxkQKm/CZYxJ4M0DSQKXcMaMf7lCvJIoPW4IejLHa4 4L9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ld3/ecIWoeDNbcuBnpLFyWNffZZpglBhokAewHw2EZo=; b=qDZH6/9/5D8M3GkkQp2Jam2Y7S6qzlbC8feDl1PMkC+kVwONvydRO+Gr/r/orJQhAa y4e6ctETMZcQ/M9kb6kh1RXeWn69sJ6XfM4IpwLtsZMYnvQgtOnjqpqcP1ga5Het8VlD U8W2agD9IhOaojKvgygW/ZB7XQXDEAONjYh6x45bN+eeN3sDKvWOovp/CXMYsW4Ee5pI LQB/qf3Sd7QfA0BCn5E99EEoih8Z3HnjgyVttYr5sNppF0/25P19skkBC/3SjYF5yfVV LB3qpBYsS1ulbUKWkCSAvXAqrj07PeVsmpPSdo7LeTbnbd9edxa2ftmd58W0kj1+ZT7O H1IA== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4si52859916pgv.157.2019.08.09.07.42.50; Fri, 09 Aug 2019 07:42:50 -0700 (PDT) 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 S2406923AbfHIOmu (ORCPT + 1 other); Fri, 9 Aug 2019 10:42:50 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:37719 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfHIOmu (ORCPT ); Fri, 9 Aug 2019 10:42:50 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MkW10-1ibFDP1DAM-00m6H3; Fri, 09 Aug 2019 16:42:37 +0200 From: Arnd Bergmann To: soc@kernel.org Cc: Vladimir Zapolskiy , Sylvain Lemieux , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org Subject: [PATCH v2 04/13] serial: lpc32xx_hs: allow compile-testing Date: Fri, 9 Aug 2019 16:40:30 +0200 Message-Id: <20190809144043.476786-5-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190809144043.476786-1-arnd@arndb.de> References: <20190809144043.476786-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:SC8nZDGE2BL9UiO9/Fozk5OqQl67V4vDebpaMMEW86kY+4HNvMj YKeoq6THCo5lQcI4cDrmklhCT+LWmfdbFN6lCLqNDdUHBRLIJebF4mmnJGvh7mNxIv3ZCwT VRRC/RLTDmubB2Xi0BWRSw3kyzrdd4XxldtbAohamPuPtyOMkYMk/BGepJUSdUSyZ8xWeQ/ KNc6Ys+WF0CLgaVoQH5wA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:4Hc4IEz+FE8=:Bi1ycoD9jmGxicFoUUXqr5 9b/29dRCFDWcYEgVD78D6DLLA8oYjJi1HM1kwFtqAW9rJ0UNlrn1TzbQ9jHY9o3Z2zVS/NOkb JqK8vcIejal4Piu9/08+X/Nw8SCu87wa05jNNtjOqbR/YqHPLSKvJ1S3AsnT5xNke/viiMiM0 FhC2pDBEnDvz2FH+LmvyZLQrjExv9w+hh6KrINZe2YCSIJqPIjz+90LR2WZePDsZVMvvIZVY3 AofLb7Y85aBRVeQ5SqHLtQwmF+Wdrk/6sNqiOUm44Eo6oUmJLJURRmO9KmiNZYeWF8tE1+8Fg 2hU2uS0MJuE6ztejja1tqp7zlMck0fN4puh+1AeDr9/h+JAR8FnRGwBiHfVOKXmZRy+WuZkYd 0WdEdfDDydRMZqM1RM9wkoSx+4l2f6bQsuPe52787AdY6XNEumOIJYB884hCm0zFkxczbXKgh VaJ9be149nYemxn0IGfZcdtR52mA1GE9LaiBcCyLWYI2jewdF+Iulw86wDRAt4sUkOEY3gKrm 2K/0jBKfJ3oDH0hKOJ2W6OKBX6J9NGuhiLgMMf8P79Utgi5f/E2PXnwhO3hAjtrqVVTyh7td9 80eTZhPkz9J6xoMjACEo+WsPBu4mk0neKFetIC7rib1R82Y/41wT86pbHoE1la6xROckMdSNF dZvNS2PHw0GDMRxSFCC5kbRqbD6/wZXPpELBuyE3X0Ot9gCtoP2vjaW1urOioW7W9aaCtQXKy NWMoDJ45quKlhemjbD/l8qhcV2xrgjPMTROlJw== Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org The only thing that prevents building this driver on other platforms is the mach/hardware.h include, which is not actually used here at all, so remove the line and allow CONFIG_COMPILE_TEST. Acked-by: Greg Kroah-Hartman Acked-by: Sylvain Lemieux Signed-off-by: Arnd Bergmann --- drivers/tty/serial/Kconfig | 3 ++- drivers/tty/serial/lpc32xx_hs.c | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) -- 2.20.0 diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 3083dbae35f7..518aac902e4b 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -739,7 +739,8 @@ config SERIAL_PNX8XXX_CONSOLE config SERIAL_HS_LPC32XX tristate "LPC32XX high speed serial port support" - depends on ARCH_LPC32XX && OF + depends on ARCH_LPC32XX || COMPILE_TEST + depends on OF select SERIAL_CORE help Support for the LPC32XX high speed serial ports (up to 900kbps). diff --git a/drivers/tty/serial/lpc32xx_hs.c b/drivers/tty/serial/lpc32xx_hs.c index f4e27d0ad947..7f14cd8fac47 100644 --- a/drivers/tty/serial/lpc32xx_hs.c +++ b/drivers/tty/serial/lpc32xx_hs.c @@ -25,8 +25,6 @@ #include #include #include -#include -#include /* * High Speed UART register offsets