Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1315111pxu; Mon, 23 Nov 2020 18:10:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/Bm+xYF3ywsM9BG6PisxHmNfU5kq3Vp43AGfMnJH2XogGX1UDh6+7smeokNag2pVjwUQi X-Received: by 2002:a17:906:2708:: with SMTP id z8mr2324188ejc.428.1606183851216; Mon, 23 Nov 2020 18:10:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606183851; cv=none; d=google.com; s=arc-20160816; b=XzT1y6C4lCmNTLsQR6aVRrAJA9cYEG+EPgdSBuwFETj1TgZd7igRXWeCFXNXYpYqGj 34glwaVpfYR19DM+t4To7Uc6Jib8+ZIfevjT8rSHgsIJTBfU4lKOHRZ0MsOyej2GPOAW nS2/PEBjOti4U2QuOXEyZ0E0v4ce9jF2NJ9qz9qJCJK18mfZmM6Dor1H0GNvW/yAE+md kjSTs33l7NkSFJr0OJiJWSKybN+ju+g1Ktfho1Opdg0pLoT2HuUMQ4c6y/LJhGpxxeHz UyafEkW+q7KTqfOtNL298/nEhf7TyWbyP+XNK6nv2Z1HVpQQWcoO6wQ6Xxeps22HsTPT HbAg== 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=dHmQ8a1bQSmJBM9NLHewySXaytNLGx8m4xL08JV6pw8=; b=MA8sKEzutkX+TIwbt1Quo+/adn/Kc0Bx2ovdSOl9tQscYgfWM1UbHIZbkg5oBfh4YJ klmYi+R5bnkXhCFajo3BpX/4kxNFemiQdq+tciZKg9iXyVBwTxMgHQDKM4IDcxdTc1ok UNURej4syQx9GXTPQixihPHcLexCYiNIav4vHmVLKOB96eK0V7ap6GCOITx8vzZs+WBY U3k0cFxhR4Biry6Yxg10DMNC6ZjR65Gz2FAJEmqwRS6mqZ8xXLfKicTWoPWxT7vH3d+5 MFkOu/fGbAZJuLb9ZvFj9iC0RLQrpQ0MtdGP7XdY/636Py5EpbzypOUtgwC1jCEM8OQa HayA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HJ+ozr2j; 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 t5si3610213ejx.124.2020.11.23.18.10.28; Mon, 23 Nov 2020 18:10:51 -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=HJ+ozr2j; 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 S2387836AbgKWNKg (ORCPT + 99 others); Mon, 23 Nov 2020 08:10:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:60866 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732503AbgKWMrH (ORCPT ); Mon, 23 Nov 2020 07:47:07 -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 B41E220732; Mon, 23 Nov 2020 12:47:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606135626; bh=nUwjvUuvRfgHtitVOBNA/84Qa48eljszewsRKcfaxpM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HJ+ozr2jCTPZsUjAAfgxgtFDSM9ye4YzWqojW8bcxi1L1Vl8eyS2SI++gfbosHTeA ZEPX+IuY0xbj4+L8MKrODR74TKSBs0lOwswhkI8EyqpUUGcl5VkeMQdWvfiqDJz21c 3yCPoWoi1UDg+McRnLF4ObredhzQQl0ivFM/9QW0= 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.9 136/252] can: tcan4x5x: replace depends on REGMAP_SPI with depends on SPI Date: Mon, 23 Nov 2020 13:21:26 +0100 Message-Id: <20201123121842.159331486@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121835.580259631@linuxfoundation.org> References: <20201123121835.580259631@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 d9216147ca93f..3acedb766c48c 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