From patchwork Tue Mar 17 12:38:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 450971 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 18CCE14009B for ; Tue, 17 Mar 2015 23:38:16 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753294AbbCQMiP (ORCPT ); Tue, 17 Mar 2015 08:38:15 -0400 Received: from mga03.intel.com ([134.134.136.65]:5385 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753233AbbCQMiO (ORCPT ); Tue, 17 Mar 2015 08:38:14 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 17 Mar 2015 05:35:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,416,1422950400"; d="scan'208";a="693307973" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.90]) by fmsmga002.fm.intel.com with ESMTP; 17 Mar 2015 05:38:12 -0700 Received: from andy by smile with local (Exim 4.84) (envelope-from ) id 1YXql9-00025w-JG; Tue, 17 Mar 2015 14:38:11 +0200 From: Andy Shevchenko To: Linus Walleij , linux-gpio@vger.kernel.org, Raymond Tan , "Ong, Boon Leong" Cc: Andy Shevchenko Subject: [PATCH v3 1/1] gpio: dwapb: enable for Quark Date: Tue, 17 Mar 2015 14:38:11 +0200 Message-Id: <1426595891-8008-1-git-send-email-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.1.4 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The Intel Quark SoC contains the DW GPIO on board. While fixing the build error the commit 1972c97db5b0 (gpio: dwapb: fix compile errors) disables the possibility to build the driver on X86, i.e. Intel Quark. The patch reenables it for Intel Quark as well. Since we have Intel Quark SoC introduced in 4.0-rc1 I would like to make this fix available there as well, though the actual MFD driver [1] is applied only for next version. [1] https://lkml.org/lkml/2015/2/1/217 Fixes: 1972c97db5b0 (gpio: dwapb: fix compile errors) Signed-off-by: Andy Shevchenko --- Changelog v3: - rebase on top of commit b90f8f22ed86 Changelog v2: - fix typo of parens location drivers/gpio/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 7ca0de3..48c9bae 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -148,8 +148,7 @@ config GPIO_GENERIC_PLATFORM config GPIO_DWAPB tristate "Synopsys DesignWare APB GPIO driver" - depends on ARM || ARM64 - depends on OF_GPIO + depends on ((ARM || ARM64) && OF_GPIO) || X86_INTEL_QUARK select GPIO_GENERIC select GENERIC_IRQ_CHIP help