From patchwork Wed Apr 20 08:57:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 66184 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp2325231qge; Wed, 20 Apr 2016 01:58:41 -0700 (PDT) X-Received: by 10.98.33.144 with SMTP id o16mr10782289pfj.108.1461142721309; Wed, 20 Apr 2016 01:58:41 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xs13si230016pac.140.2016.04.20.01.58.41; Wed, 20 Apr 2016 01:58:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932949AbcDTI6g (ORCPT + 4 others); Wed, 20 Apr 2016 04:58:36 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:36495 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932881AbcDTI6e (ORCPT ); Wed, 20 Apr 2016 04:58:34 -0400 Received: by mail-lf0-f50.google.com with SMTP id g184so36655352lfb.3 for ; Wed, 20 Apr 2016 01:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qK78dZJw6l9YmIe60k2I4wtsJlvI7CUTat/+7sEPlVM=; b=E11Jdx+alFfQDedm0fVE15B9ntaDzOQfbtwBYa3gRs6hPh1jW1zrCo9VS1KmGJYnQ4 /tDy5MkuHWhQIucVLmWOAk/6/p7zNN6uzl9nVwqYrn67OVdQGBnlmytbM29fycO6KblM s0J34O+p9qu5AYAPTsNjsP4FrH59slKALTK58= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qK78dZJw6l9YmIe60k2I4wtsJlvI7CUTat/+7sEPlVM=; b=YfN1Tvi9wokKvj7MAV8GbZZf+C7B+ls8ktKgQJ7MiBZtdSQz2Sduw5AfWk/14sHimr g5ufczblDw19szwKJKTKViNv8pU82RuJrp6bOFllPOGGoG3uEz+L2emZ0q8mFPpi1lNW s8SDNg8oPNgk215hj+jtR/p6kNeONUcUiuB/oL1KdF368YfqSl/wuBUO2aHBkJKtCZsJ tGgQJANhtJ1i2NK1sj6sPa5ds8btKnCORdG/iBP02KWUyJ2jz3KVGxvUv54p7x17Qnyg p35Wa81HjiXtkNLt3tZy5rs6Pefw1NWRg8P/ShYn5/D6DRrjOihwYnzMrn1IHDJgmYj/ sj1A== X-Gm-Message-State: AOPr4FWSm9I+xgpEQKS0CBW9g+v0CqbcKWXqVUh6WCf5PUpRhRml4AgjBDEglSc/HHtL6ZNB X-Received: by 10.25.1.196 with SMTP id 187mr3168000lfb.143.1461142713069; Wed, 20 Apr 2016 01:58:33 -0700 (PDT) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id z8sm849934lbv.42.2016.04.20.01.58.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Apr 2016 01:58:32 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org, Alexandre Courbot Cc: Linus Walleij , =?UTF-8?q?Michael=20B=C3=BCsch?= Subject: [PATCH 01/23] gpio: remove deps on ARCH_[WANT_OPTIONAL|REQUIRE]_GPIOLIB Date: Wed, 20 Apr 2016 10:57:59 +0200 Message-Id: <1461142701-21096-2-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1461142701-21096-1-git-send-email-linus.walleij@linaro.org> References: <1461142701-21096-1-git-send-email-linus.walleij@linaro.org> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The GPIOLIB symbol currently require that ARCH_WANT_OPTIONAL_GPIOLIB or ARCH_REQUIRE_GPIOLIB is selected to be selectable. The ARCH_REQUIRE_GPIOLIB does only one thing: select GPIOLIB. This is just confusing: architectures that want GPIOLIB should be able to configure it in no matter what, and those who require it should just select GPIOLIB. It also creates problems for drivers that need to state "select GPIOLIB" to get dependencies: those depend on the selected architecture to select ARCH_[WANT_OPTIONAL|REQUIRE]_GPIOLIB first, and will cause compile errors for the few archs that state neither. These intermediary symbols need to go. As a first step, remove the dependencies so that: - ARCH_WANT_OPTIONAL_GPIOLIB becomes a noop (GPIOLIB will be available for everyone) and - "select ARCH_REQUIRE_GPIOLIB" can be replaced by just "select GPIOLIB" After this patch we can follow up with patches cleaning up the architectures one-by one and eventually remove the ARCH_[WANT_OPTIONAL|REQUIRE]_GPIOLIB symbols altogether. Reported-by: Michael Hennerich Cc: Michael Büsch Signed-off-by: Linus Walleij --- drivers/gpio/Kconfig | 1 - 1 file changed, 1 deletion(-) -- 2.4.11 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" 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/gpio/Kconfig b/drivers/gpio/Kconfig index f73f26b43532..a68d83808f37 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -33,7 +33,6 @@ config ARCH_REQUIRE_GPIOLIB menuconfig GPIOLIB bool "GPIO Support" - depends on ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB help This enables GPIO support through the generic GPIO library. You only need to enable this, if you also want to enable