Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1318262pxu; Mon, 23 Nov 2020 18:18:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEWlKa61lTCgXzdn8nQ75HdK9ZDgf5+eM5O+MsUkO1NWMBFJgJ02YLh69/2Fz+eDE9UCRp X-Received: by 2002:a17:906:145b:: with SMTP id q27mr2229478ejc.86.1606184304972; Mon, 23 Nov 2020 18:18:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606184304; cv=none; d=google.com; s=arc-20160816; b=WrdL/tZy30j2l1WiuRb3dhx6TyTZtKZ2DhvXzq8K3wU2HuZvoGT6M1IrBzrB8mFTTy 2S/RTCcLm8GD7kLpE1WAe8V33bo5Vrwpk5eSyr6Qza/FKd5E2FC5d1tnQoGEVu3B7t97 DCIva3gS8MOQYtNUOhJr4Qsf5WKPaxwkEli2qjlphj8WYYsujChy3rQCvaYR+cS6YiFi fIXfXb9G+QcDESvrSnePx9CUxS0m8Q2jnDWPsgaE0h+vXmb6XoBB0yYAC1SZGvIa90kZ KxQ2Xf4bdtgm8GtktRQmhlg+5UKoIEvIZbQXtvDcdifDkA2vr4KheySfJlvY3Bjppila yMEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vIg0H1Coqvu5DoNAtbFoQAFDJdAPMO8146HzSFJzCLU=; b=gaaw4O1NzlpvhppF2KI8ivwjzdolL3pWsNye+aTkd1VLMNKri/4Q7JaW96fUi7W2Df sWgVar4IkYm8zyk0P5kehd1GwFS7QWuuah50ekVVnfyinf/qSgxkzWwIcD5KezeB8LwZ +BGuP3PqsuXzYzCdu7Gb+OFaxzY1FKXla9VgBm2eWsTzxmTKuN/sL8AdlZdPR4sI59T6 Jkz+Y5e9IW3VfBWbkg2mNWJUGNBEZq3J6SbV9t0Xm10QQ5Obm4Z8l/QrY3TEYrVioYmA TZgo+C4tPYhepxCONcrJMU+5h3aUmQSMvGDiS9OxoVLT+VfBQRVCDOiPFKnCIzF3a90h DlvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Y+Ca7wJH; spf=pass (google.com: 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a5si7727689ejs.534.2020.11.23.18.18.02; Mon, 23 Nov 2020 18:18:24 -0800 (PST) Received-SPF: pass (google.com: 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Y+Ca7wJH; spf=pass (google.com: 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732516AbgKWNVr (ORCPT + 99 others); Mon, 23 Nov 2020 08:21:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:49610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731890AbgKWMhV (ORCPT ); Mon, 23 Nov 2020 07:37:21 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1507120857; Mon, 23 Nov 2020 12:37:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606135039; bh=nh956R47692KydtrTYbpmpPSYC0xWiPlsnKQJrF2P3I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y+Ca7wJH1No2dBRRd2lMlTEe2H79ySIKS7P+8TRSHPnywVhR0NgGXESDr72fM566v eAzwZh26qocBVUXy5g4VQ2aFZMN1G6lJe/Aju0Ez07mKEWwrWCXqO3Yh/ljn+TNVkm XuGP/ihAFVWgXJLbwrSs6iD64biDkQbqLVOmiyq4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Enric Balletbo i Serra , Dan Murphy , Marc Kleine-Budde , Sasha Levin Subject: [PATCH 5.4 082/158] can: tcan4x5x: replace depends on REGMAP_SPI with depends on SPI Date: Mon, 23 Nov 2020 13:21:50 +0100 Message-Id: <20201123121823.888544974@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121819.943135899@linuxfoundation.org> References: <20201123121819.943135899@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Enric Balletbo i Serra [ Upstream commit 3fcce133f0d9a50d3a23f8e2bc950197b4e03900 ] 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 Link: http://lore.kernel.org/r/20200413141013.506613-1-enric.balletbo@collabora.com Reviewed-by: Dan Murphy Fixes: 5443c226ba91 ("can: tcan4x5x: Add tcan4x5x driver to the kernel") Signed-off-by: Marc Kleine-Budde Signed-off-by: Sasha Levin --- 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 1ff0b7fe81d6a..c10932a7f1fe3 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.27.0