From patchwork Tue Sep 30 12:09:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 5002461 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 72F3EBEEA6 for ; Tue, 30 Sep 2014 12:10:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A5FDE201BC for ; Tue, 30 Sep 2014 12:10:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DB93B20172 for ; Tue, 30 Sep 2014 12:10:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751220AbaI3MKV (ORCPT ); Tue, 30 Sep 2014 08:10:21 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:50197 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751047AbaI3MKU (ORCPT ); Tue, 30 Sep 2014 08:10:20 -0400 Received: from wuerfel.localnet (HSI-KBW-134-3-133-35.hsi14.kabel-badenwuerttemberg.de [134.3.133.35]) by mrelayeu.kundenserver.de (node=mreue005) with ESMTP (Nemesis) id 0LfFgy-1Y1PJz0PM0-00ooc9; Tue, 30 Sep 2014 14:09:47 +0200 From: Arnd Bergmann To: Mark Brown Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH] spi: bcm53xx: add BCMA dependency Date: Tue, 30 Sep 2014 14:09:46 +0200 Message-ID: <3256402.M8e92DFkbg@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V02:K0:3Curb5Ch3rIO6c947zUQ0lL7Dze7yEh7iV9Z7ondbjC VSydgvuBY5kUn5XVUk7RAjvu9+ZYjkSU6oXA5gFbB9ks41BDBC BEqE+XF1pa5viINQL1Rvt6jWTrawKLOjMOvr3AkUxV0Au/9msx hDNBpTcJuEp0lKl2+oxKtECHF8cgnEdBwb0y/HHDXAeAsxySD0 c1wy7znUUyM7JCOn3RRIE0KQT2V4MtIMaY+MVF0nFB0Sw7OlrS An7r/dQXVFWQiMx3rxzbk29Cqy7ziGcJa+WUuhZ2bRywxWemxG RTpLSBksWSN4rCgCuiCr7INumEncovptq5NAwX+cH4yVcngVeb ReVX5WZIsKCQYNl6Ayxw= X-UI-Out-Filterresults: notjunk:1; Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The BCMA bus framework can be disabled on bcm53xx, which leads to a link error when building the SPI driver: drivers/built-in.o: In function `bcm53xxspi_module_init': :(.init.text+0x76d4): undefined reference to `__bcma_driver_register' drivers/built-in.o: In function `bcm53xxspi_module_exit': :(.exit.text+0x10fe): undefined reference to `bcma_driver_unregister' To avoid that, this adds an explicit dependency on BCMA. While we're changing the dependencies, let's also add a COMPILE_TEST option, which will of course not have any effect unless building on another machine that has BCMA enabled. Signed-off-by: Arnd Bergmann Fixes: 0fc6a323e19 ("spi: bcm53xx: driver for SPI controller on Broadcom bcma SoC") --- To unsubscribe from this list: send the line "unsubscribe linux-spi" 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/spi/Kconfig b/drivers/spi/Kconfig index bb7b5ec000d9..ababd27a4211 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -115,7 +115,8 @@ config SPI_AU1550 config SPI_BCM53XX tristate "Broadcom BCM53xx SPI controller" - depends on ARCH_BCM_5301X + depends on ARCH_BCM_5301X || COMPILE_TEST + depends on BCMA help Enable support for the SPI controller on Broadcom BCM53xx ARM SoCs.