From patchwork Sun Feb 7 14:12:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 580168 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0AC5C140B93 for ; Mon, 8 Feb 2016 19:00:17 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755278AbcBHH7q (ORCPT ); Mon, 8 Feb 2016 02:59:46 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:36447 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755517AbcBHH7p (ORCPT ); Mon, 8 Feb 2016 02:59:45 -0500 Received: from ayla.of.borg ([84.195.106.123]) by andre.telenet-ops.be with bizsmtp id Fjzi1s00D2fm56U01jzis8; Mon, 08 Feb 2016 08:59:44 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1aSgSR-000547-Bu; Mon, 08 Feb 2016 08:42:03 +0100 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1aSQ4r-0005Pl-Mp; Sun, 07 Feb 2016 15:12:37 +0100 From: Geert Uytterhoeven To: Mark Brown , Martin Sperl Cc: linux-spi@vger.kernel.org, linux-gpio@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] spi: Allow compile test of bcm2835aux if !GPIOLIB Date: Sun, 7 Feb 2016 15:12:29 +0100 Message-Id: <1454854349-20780-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.9.1 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer functionality only, can still be compiled if GPIOLIB is not enabled. Relax the dependency of SPI_BCM2835AUX on GPIOLIB if COMPILE_TEST is enabled. Signed-off-by: Geert Uytterhoeven --- drivers/spi/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 77064160dd762c26..4e08d42a9fa1b2c4 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -90,8 +90,7 @@ config SPI_BCM2835 config SPI_BCM2835AUX tristate "BCM2835 SPI auxiliary controller" - depends on ARCH_BCM2835 || COMPILE_TEST - depends on GPIOLIB + depends on (ARCH_BCM2835 && GPIOLIB) || COMPILE_TEST help This selects a driver for the Broadcom BCM2835 SPI aux master.