From patchwork Sun Aug 17 10:08:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 4730891 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 67DFFC0338 for ; Sun, 17 Aug 2014 10:09:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 974AC20131 for ; Sun, 17 Aug 2014 10:09:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C66862012E for ; Sun, 17 Aug 2014 10:09:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751230AbaHQKJN (ORCPT ); Sun, 17 Aug 2014 06:09:13 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:51994 "EHLO mail-la0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751159AbaHQKJL (ORCPT ); Sun, 17 Aug 2014 06:09:11 -0400 Received: by mail-la0-f45.google.com with SMTP id ty20so3604465lab.18 for ; Sun, 17 Aug 2014 03:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=mVj74ytLE+OdVoZFewYqAASQcvQd9Ybhl8jTW0qM1Jk=; b=L/lhqnDh+SwZyqPMFBmrLVbaZMEhfIyLE7ykr+BSGh7uHi+nC128RYk27K2s/cQqNx sj8/41xIDyUK7V2E+UJ1k15Cr1svplTX3NOikTG9sZ3RRGIAjL/drnFalAdF1vVHbKsm HeFR31ynS5LqpnQGb8GSpJS9y6oDubncW+UWH+6pocLwsvffdDythQ3n6Z3TTHAzlz39 g8Fo07YiPC4lylH7pq8P0NzvnbAItYk5Y+p5DAOx9N/HhnkFSOD/yRaeySfFM+4YCx84 kE1l7vrV1hiCyQ8ANMyU2DMfcW3ZfcQ/1NF9iOTetZIeCwH21Kk8dVtp1cMTA5+zecfC wk6Q== X-Received: by 10.112.172.38 with SMTP id az6mr21155692lbc.53.1408270149930; Sun, 17 Aug 2014 03:09:09 -0700 (PDT) Received: from ramsan.of.borg (d54C154A7.access.telenet.be. [84.193.84.167]) by mx.google.com with ESMTPSA id j20sm21649240lbo.3.2014.08.17.03.09.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 Aug 2014 03:09:09 -0700 (PDT) From: Geert Uytterhoeven To: Mark Brown , Greg Kroah-Hartman , MyungJoo Ham , Chanwoo Choi Cc: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-spi@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/2] regmap: Add eplicit dependencies to catch "select" misuse Date: Sun, 17 Aug 2014 12:08:57 +0200 Message-Id: <1408270138-29811-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.9.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=-7.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Add explicit dependencies for the various regmap modules, so Kconfig will print a warning message when another module selects a regmap module without fulfilling its dependencies. Without this, it's much more difficult to find out which module did the offending select. Signed-off-by: Geert Uytterhoeven Acked-by: Wolfram Sang --- drivers/base/regmap/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/base/regmap/Kconfig b/drivers/base/regmap/Kconfig index 4251570610c9..8a3f51f7b1b9 100644 --- a/drivers/base/regmap/Kconfig +++ b/drivers/base/regmap/Kconfig @@ -11,12 +11,15 @@ config REGMAP config REGMAP_I2C tristate + depends on I2C config REGMAP_SPI tristate + depends on SPI config REGMAP_SPMI tristate + depends on SPMI config REGMAP_MMIO tristate