From patchwork Wed Feb 18 15:29:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 5844741 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E1367BF440 for ; Wed, 18 Feb 2015 15:29:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 202AD20149 for ; Wed, 18 Feb 2015 15:29:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 499AC20107 for ; Wed, 18 Feb 2015 15:29:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751824AbbBRP3T (ORCPT ); Wed, 18 Feb 2015 10:29:19 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:61998 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751568AbbBRP3T (ORCPT ); Wed, 18 Feb 2015 10:29:19 -0500 Received: from wuerfel.localnet ([149.172.15.242]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MgfYN-1YAi11105f-00Nw23; Wed, 18 Feb 2015 16:29:12 +0100 From: Arnd Bergmann To: broonie@kernel.org Cc: linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Barry Song Subject: [PATCH] spi: sirf: add reset controller dependency Date: Wed, 18 Feb 2015 16:29:10 +0100 Message-ID: <4553005.HBquOfbqXe@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: V03:K0:lRvkQXGeMf4edSkc7cacoEA329TZsxWkojiV2doFUMfQb0VHDnR pByAO3Uc9jXqtVGjbfhDs7lsR/KCiZPOn78wJL0TxdD/sR1vCZHFmq6QR44R3qH52tiSHoW KB6ChZlZzNvx3coMUMEME/8XmOVo4KMDOjptAZBi0ODfUddg/kdY1zFvnBZYIL4ZimA3DsR MByypCuY+SVRmkVJkn+7A== 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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 sirf spi driver only builds correctly if the reset controller framework is available, otherwise we get an error: drivers/spi/spi-sirf.c: In function 'spi_sirfsoc_probe': drivers/spi/spi-sirf.c:651:2: error: implicit declaration of function 'device_reset' [-Werror=implicit-function-declaration] The adds a dependency in Kconfig to prevent it from being selected if the resets are not available. Signed-off-by: Arnd Bergmann Fixes: 8509c55fcb51 ("spi: sirf: reset SPI controller in init stage") --- 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 ab8dfbef6f1b..b3ae90e4c03c 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -507,6 +507,7 @@ config SPI_SH_HSPI config SPI_SIRF tristate "CSR SiRFprimaII SPI controller" depends on SIRF_DMA + depends on RESET_CONTROLLER select SPI_BITBANG help SPI driver for CSR SiRFprimaII SoCs