From patchwork Wed Jul 31 19:56:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 170213 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4433963ile; Wed, 31 Jul 2019 13:00:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzA0bdNGptuB0F/MTbo5s7o7ka8oro1f7Gis4kGgS5A5CN3THKtm9nTo7+So+NQRpR0r3ju X-Received: by 2002:a17:902:8547:: with SMTP id d7mr124278090plo.171.1564603209317; Wed, 31 Jul 2019 13:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564603209; cv=none; d=google.com; s=arc-20160816; b=fWdemYPaJTM3zy0SB18BiIdDaZwJqV33o4jPZI8MU2Nu8QpfbA4O7cdQxLWSoMQEhc ZiB3AKvjfq0QV+rrZ8WUwCfnN2ATZ0YPEjVyfNXoUS+BxvSuwMn9TzCdEysA5TPuAlTI 32/kS4Z+W3ft4IEMAJ91xg32FfRVzPvdWK8t72FQq6/2X5gy8jvXtlmaWHL1Wr9hXafM bl3/4EhUTtOvlCRZR1FjMazlBszx0mRdGcjf1vYqscEL7APQw83YwqlAiV0e6udKs/dE z0pMHNJotlFmTaxjjiHa+9F+GrsrByPxqy9/ScdIyUrGYg87q9lWVPCc925xET+b557z XYLg== 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=WM6C+9Qsn02wmGI0WnDra9A7Auy34TyhLHakVGBoxkc=; b=yUTOmB4WGiDlmJL7DOklV47Wp7Qwn1sylYjwQ4Ob8MZNP8VrbRCCxmQ0Y089oq21Nw 6fQim1PfLPeEBhIhCVSRciChnrpDJHBZlGJDglwxeaPOawKy6uEY05nQl+3Y+zNYtpQq cWizKn2Qf963h4OCFyoZ5g2vj0NfssAXssgO3+Ge7a6VgJxagcQ1ZN9J+mfAWhAMFdpD btiMLQ+hscY+QVzxiAhr4ZfPfIMZoT7QFCkqsCYQplzOYMMhTUv9/ADsrx9Ai9Cy2p7Z xvUvmUxMxGPygfFH2+RDRZxO0aBystRMd9ICwTUeYv76g4K04DNuY1XW/2guIJQKjyoG c8wg== 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 r11si9210400pgp.390.2019.07.31.13.00.09; Wed, 31 Jul 2019 13:00:09 -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 S1728157AbfGaUAI (ORCPT + 1 other); Wed, 31 Jul 2019 16:00:08 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:34817 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbfGaUAI (ORCPT ); Wed, 31 Jul 2019 16:00:08 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1Mo6WJ-1ihbS32Skt-00pgri; Wed, 31 Jul 2019 21:59:24 +0200 From: Arnd Bergmann To: soc@kernel.org, linux-arm-kernel@lists.infradead.org, Vladimir Zapolskiy , Sylvain Lemieux , Russell King , Gregory Clement , Linus Walleij , Greg Kroah-Hartman , Jiri Slaby Cc: Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , "David S. Miller" , Alan Stern , Guenter Roeck , linux-gpio@vger.kernel.org, netdev@vger.kernel.org, linux-serial@vger.kernel.org, linux-usb@vger.kernel.org, linux-watchdog@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 04/14] serial: lpc32xx_hs: allow compile-testing Date: Wed, 31 Jul 2019 21:56:46 +0200 Message-Id: <20190731195713.3150463-5-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190731195713.3150463-1-arnd@arndb.de> References: <20190731195713.3150463-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:FgQXWHBg8JwiLqFUWJflxqSabbAP8JCw6bQWgIJ0su4bbGS+nRK 0kUqcrfqJfWTc10p+TkInneDvk18LhtSmF5HyllYlbCgM6NIe2ax1LYFHpLJUPtftTqVfHY LT8kDYequkxI5Lbi1wDejhDPoHyerdsb7xvK8eoFciT5n0YokYA8TO/pNPuR18xFg1KR67C ohO68gbXz9QjaHkKemAWQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:9zXs2NceyDg=:N9NkeMAe628aOvT2TIb/xb PWR1SJ+Jn/xnW7MzNM80nxT0HFhj0IH9hRJO7YpP3nO1nzkVmMIuBW8MfuEjzvna4yYuw/NrN Xdgphu9Ry1EE8S2qqTWWjhUDz545qonpnL1oJEOm/Hr5xdROH7H2WeLZJpQCtnxVxQ8Wh5hqY nU5h7ie3lhbyDKd1IWAhOejvlfNepdIKHF1pDyXuAnlgQUVMople/U1mBLmt0NoxdvF/6Mcer 8tH++YghoErbfk2yDkMI2HYS3ZeTBZRbPO2ZX3iDLbDarWtrQvzDqEVMyG8Y6EUmP0b4qyFjN PwLeOGDMs4lB0+cFHs97ILEblNeqmOzk14Ox/7D0BPmUuVaxPFJuCwl6Uh4bTDBi8TlEtcnsF qKLNzlhsV4qv+KM3IKY+XI8kOnePo6K95sFf+QHEEqVuX8oAp63/X9aVVWFpNTIHW6Va2GEm5 rWdpIHl6eOJoB+r3wgOJizmqDyGRWK5+D7E47X3Bac211kWk2upDTiYsqftygCXSHNH6sKjd1 AQJoQbtKh20u9ADOyh9GW2ko1Az6jrllCmcnPqt1XDs9uHtH/ygJG0Gn7GWFngWKjOpGMOcj0 CGy7SaTzt3GuiyKDn9gHxUEXhOjsb4aCnEX5bWyLhHzocWJcLWujmLb48VzchIKZJgwZWu7lf UkS5FB881G9+x8p0cLogi/HR4km/FxXNvseAnDybpGdJN33PMpOBWTcW0/y9Clg0W5ImRhw22 ktX8KghGubpyC+mg1c2YtkHDcs3NhemMbCnviw== 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. 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