Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4349034ybb; Tue, 14 Apr 2020 05:39:07 -0700 (PDT) X-Google-Smtp-Source: APiQypLpSE+4nBqzRdwFzs0NniYct+YhBqXYJDNVqIvUvaQ6C8pfOBi6KsoX1LR76cVhboj24rbF X-Received: by 2002:aa7:ce8e:: with SMTP id y14mr19971204edv.30.1586867947460; Tue, 14 Apr 2020 05:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586867947; cv=none; d=google.com; s=arc-20160816; b=ukrYfUpuJgUFEAREW5nTD9cxhWvWx4eUNJ8jfJ8tWO4VlsKQ4N2vP9O+I8mK3Vb+yj t/TMxW6h09I/mtO+sj2f5/LeP73YeGjkHqlpsXIMZPsIVQsBXNRwhhVdKkW4oK3Dp6T5 PNDraZ28lurMuzlUki/G3YLtx6pJiD5aTJGLk+QVQVDUxNx51bfNs9dnWLqk3GPDlSH0 S4sHEtV+iXBSjElrw6Ge8Btqs6DpaBAHEm9iAK0HxjOwM490eLfbSfjLRkrjrMQDd478 7cCk4tF2uw69XWZzpYRurlsiyMhS4yRACrzjjB1HvuZjMTFAV4/nE459K4tH0nh0Rxau 9T+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=f9Og/+zGVBQIq3CyUmAco+kMGQjTMgssDdUb29OWTK8=; b=uUjRnUt3uJqTgb6n5r+KpMeXiUCpeaAGnO1Rbw4NPWKeh8JlIfEcPW0BqoM64tWcGk G6YLly4abtO8ExC5yMRmVp/ut7Zu2vfH44qhxBaj8YxCMEGKOnF7qD/4PcEvKzr1zcON Q2q3xcZtSCK0GdeE88T4hkbk/IQ8XFs2FPGoJ4wCPYKUpPQWQUd54/2P+7z0pSsQsVvy c44H7BjAgaPy4FeDuP5ml9BQOe2kZtMRyML/Z5PGGhXPIWGezVN4DjfQtNd1xNg2Il/Y hmJVrsIBDJCg5Q3PtEBt8AyYh5z9gG1+iXjYGUUJAE/i/kfOrMrDnsZpgAoB2dSQCOks oghA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si5366682edl.580.2020.04.14.05.38.43; Tue, 14 Apr 2020 05:39:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730373AbgDMOKX (ORCPT + 99 others); Mon, 13 Apr 2020 10:10:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730361AbgDMOKW (ORCPT ); Mon, 13 Apr 2020 10:10:22 -0400 X-Greylist: delayed 1439 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 13 Apr 2020 07:10:22 PDT Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35A94C0A3BDC for ; Mon, 13 Apr 2020 07:10:22 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 11B5C26DA92 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , Dan Murphy , "David S. Miller" , Greg Kroah-Hartman , Marc Kleine-Budde , Thomas Gleixner , Wolfgang Grandegger , linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] can: tcan4x5x: Replace depends on REGMAP_SPI with depends on SPI Date: Mon, 13 Apr 2020 16:10:13 +0200 Message-Id: <20200413141013.506613-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org regmap is a library function that gets selected by drivers that need it. No driver modules should depend on it. Instead depends on SPI and select REGMAP_SPI. Depending on REGMAP_SPI makes this driver only build if another driver already selected REGMAP_SPI, as the symbol can't be selected through the menu kernel configuration. Signed-off-by: Enric Balletbo i Serra --- drivers/net/can/m_can/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/can/m_can/Kconfig b/drivers/net/can/m_can/Kconfig index 1ff0b7fe81d6..c10932a7f1fe 100644 --- a/drivers/net/can/m_can/Kconfig +++ b/drivers/net/can/m_can/Kconfig @@ -16,7 +16,8 @@ config CAN_M_CAN_PLATFORM config CAN_M_CAN_TCAN4X5X depends on CAN_M_CAN - depends on REGMAP_SPI + depends on SPI + select REGMAP_SPI tristate "TCAN4X5X M_CAN device" ---help--- Say Y here if you want support for Texas Instruments TCAN4x5x -- 2.25.1