From patchwork Thu Oct 5 12:11:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9986987 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6BF3B602B8 for ; Thu, 5 Oct 2017 12:11:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57E67286F3 for ; Thu, 5 Oct 2017 12:11:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4CCA528C70; Thu, 5 Oct 2017 12:11:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73CF0286F3 for ; Thu, 5 Oct 2017 12:11:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751317AbdJEMLp (ORCPT ); Thu, 5 Oct 2017 08:11:45 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:54759 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751248AbdJEMLo (ORCPT ); Thu, 5 Oct 2017 08:11:44 -0400 Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0Mf6Az-1dgeIp0emP-00OY2K; Thu, 05 Oct 2017 14:11:34 +0200 From: Arnd Bergmann To: Mark Brown Cc: Baolin Wang , Arnd Bergmann , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: spreadtrum adi: add hwspinlock dependency Date: Thu, 5 Oct 2017 14:11:17 +0200 Message-Id: <20171005121129.531046-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:olEHsD7vBnl2nyjmOvXGNTP6rIy2Q01gzQaU5Kuh44EFb5JhJPz HiGhClsk4ADC8rnBIyW5lpZ7b0oVhIWgUwuSIFeqczDBrvRSGHLKZnZTyUpXaMo4DGxk4Ge pRmQKIynLLM2AimGeALdZFC5VlPxwP8xUTVwBjazJqzOsHP/mQzjqOf21vFgRgMU+3u+Klr qVcKNBm+Kj6oR4sf4BdvA== X-UI-Out-Filterresults: notjunk:1; V01:K0:e2w0STwH/rI=:5QoBByOD7OxZVTEOVvkvLY BzXgGwOs21F4xRDnS/KUQcxA1g6eBA5OOat2+dAAFqLaEU/QIf5nhE5w8zrmV+lHO3cBZIR6l EcjZ0AjwAlEP3vu3ujw6gQc1Q3RW9vJiRw7oYXZxyf/byAqj/6n3tJVp6BnrO5lK9eaS3hjro n0JlSEyDwWYaSS/DbY9ahk6bDa/IvFu6olaWErQst88TqP4PzlPAi/D++jbcxiZXn+4MXE9A3 pYCRUeLmJIkjuBcC8qYs067ORxzz7x3l1mSy/M82WUM0pcw/KExePwTlCX5PLrXxbmRMbUn69 QKhed+ISF1eg/KQnA/rIuubcPQJOWhUKFfecv4BUfiO0h0RqmfiSrtplZTnbE7bkqyOnUolqz PdkbV7YUmoqREvQ1VFFvsV8MfvjEsBerhbFsShqlOM4nRalhA6hJi0Du/R0xGKz+4gIyANIzb Rla1LT//I5CnnmUIGElar2dIQDuG6uHKZSMVR/+Ta6wpKu94Hre5S+bmQgkL9KddzyK5US0Qm EjpOHkSjBhrHOCVqjLRiP59pZi5HfDN+tDzvfe6DVxH2pTiceILHsGyTtLxPTn5Aqw+r8IWBc uQyY0ESCeMStEiQ2nFVGeu2F0RZYasZ7M1IlkY1YUhUdhvApFAaifziPsGOz3sy1NJv2fg8Gg R1YGhVNxmiOz5b5g66u1bRyfr66DdfThhUgBTFlry9b0qDHq+DBZKywZSUVUTqYZXsi0IZMTM dSVupL0yi3MkoohzpkP1Z25WtZu4A2MpAytOcA== Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With CONFIG_HWSPINLOCK=m, the new driver fails to link as a built-in driver: drivers/spi/spi-sprd-adi.o: In function `sprd_adi_remove': spi-sprd-adi.c:(.text+0x18): undefined reference to `hwspin_lock_free' drivers/spi/spi-sprd-adi.o: In function `sprd_adi_probe': spi-sprd-adi.c:(.text+0xfc): undefined reference to `of_hwspin_lock_get_id' spi-sprd-adi.c:(.text+0x108): undefined reference to `hwspin_lock_request_specific' spi-sprd-adi.c:(.text+0x268): undefined reference to `hwspin_lock_free' This adds a hard Kconfig dependency on HWSPINLOCK, which is the simplest solution since we don't care about building for the case without HWSPINLOCK. Fixes: 7e2903cb91df ("spi: Add ADI driver for Spreadtrum platform") Signed-off-by: Arnd Bergmann --- drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 2d9601e3a6ae..e2bd86826d44 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -625,6 +625,7 @@ config SPI_SIRF config SPI_SPRD_ADI tristate "Spreadtrum ADI controller" depends on ARCH_SPRD || COMPILE_TEST + depends on HWSPINLOCK help ADI driver based on SPI for Spreadtrum SoCs.