From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Stein Subject: [PATCH 03/63] gpio: tegra: Allow compile test Date: Fri, 26 Feb 2016 14:17:12 +0100 Message-ID: <1456492692-21592-4-git-send-email-alexanders83@web.de> References: <1456492692-21592-1-git-send-email-alexanders83@web.de> Return-path: Received: from mout.web.de ([212.227.17.11]:51813 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753010AbcBZNSU (ORCPT ); Fri, 26 Feb 2016 08:18:20 -0500 In-Reply-To: <1456492692-21592-1-git-send-email-alexanders83@web.de> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Linus Walleij , Alexandre Courbot Cc: Alexander Stein , linux-gpio@vger.kernel.org Allow compile testing this driver by adding a new config option which is enabled by default and depends on the old symbol or COMPILE_TEST. Signed-off-by: Alexander Stein --- drivers/gpio/Kconfig | 5 +++++ drivers/gpio/Makefile | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 7da57e4f0fea..8bf09873977c 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -392,6 +392,11 @@ config GPIO_TB10X select GENERIC_IRQ_CHIP select OF_GPIO +config GPIO_TEGRA + bool + default y + depends on ARCH_TEGRA || COMPILE_TEST + config GPIO_TS4800 tristate "TS-4800 DIO blocks and compatibles" depends on OF_GPIO diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index f1d3d823d1bc..422802270f48 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile @@ -94,7 +94,7 @@ obj-$(CONFIG_GPIO_SX150X) += gpio-sx150x.o obj-$(CONFIG_GPIO_SYSCON) += gpio-syscon.o obj-$(CONFIG_GPIO_TB10X) += gpio-tb10x.o obj-$(CONFIG_GPIO_TC3589X) += gpio-tc3589x.o -obj-$(CONFIG_ARCH_TEGRA) += gpio-tegra.o +obj-$(CONFIG_GPIO_TEGRA) += gpio-tegra.o obj-$(CONFIG_GPIO_TIMBERDALE) += gpio-timberdale.o obj-$(CONFIG_GPIO_PALMAS) += gpio-palmas.o obj-$(CONFIG_GPIO_TPIC2810) += gpio-tpic2810.o -- 2.7.2