Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1639713ybv; Fri, 21 Feb 2020 00:48:58 -0800 (PST) X-Google-Smtp-Source: APXvYqxI2wZ8gCwekujrGLCB72FvFkMS8C58+ZfW7qMbg45M8pZ51QOjBifDAXl2EsXX7qL3Iwi6 X-Received: by 2002:aca:c709:: with SMTP id x9mr1060131oif.130.1582274938391; Fri, 21 Feb 2020 00:48:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582274938; cv=none; d=google.com; s=arc-20160816; b=nRhxsJ9mIm+XQ9WnFUYrlZFCATuMnlsZvUKRUCrEoiKha5uPKGZSQaEucVzYWlEXz8 /8WX/CEr0fwmkRmXPKTE6pEY0d9SdbxvvvS6UUU32BtDuFa7EPjVjBEqunwyqM0YC4wt O971ZMpEI/MnDoJvdj55j6fkDmXNNsVGhdpuBXKNxiErvyC/y6Rw6TnTDNanny5WzXOd 1tGw6q1ukLQTDfXDNuijXjjT5vrzkyus/86ai72hU+DefAxuo0/cA5f6dtLPzYz1wDb8 rjAmGJnyDk9i2M79ZfNgDpc2J+Z/C09Q6SASbcW+2nduP5D/E0/uH0ZHlvSLH1FyoY0u KUig== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QgF9kFXvtxHybKg41TXFWY5x7qlShCW17lSNybxNIWo=; b=La/sWQrvLw5OFvPQ18n9Ma8vs0ne23Wj7Tvg1Yzx7+BeEIrA21oqFlARo5Gxf74zS6 8DUErXQXbXNXXDrT1TBdUZpSnIjt2fGGdVYPHr51WcaUd4CpPpBgCr6BaA63lFKSyD9G vHQVjfw2bxCV+VX6eR+aGcH6rZ/+qEzrPJPDHwCSY5Z4SKLMcnU3+LrSzHJnGdKYm0Hq kyzVsmUJYvseRFZNAvZBLKKs4QtommFKXeOqyr3yQQZaXSFNqgH3bH+DwQHquzj07veE JrhLu0PLfuqUaD9V2ingIZS+Yb/3+ukVAnlTaM37kidPLmAgejK+F8pt6C1IV+4lnTyq ZHAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HioetwjL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x198si454918oif.108.2020.02.21.00.48.46; Fri, 21 Feb 2020 00:48:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HioetwjL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731287AbgBUIsM (ORCPT + 99 others); Fri, 21 Feb 2020 03:48:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:43138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728169AbgBUHrU (ORCPT ); Fri, 21 Feb 2020 02:47:20 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 2897120801; Fri, 21 Feb 2020 07:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582271239; bh=WqaG5AzvhJERv+jxrahx7FcSznI7YlI6rgAoKinkqlo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HioetwjL12PpoMCB9PwW1KiShGVk2F63TT6D5uDklzePFV6tRNjvzZ33nWgGutcvK kPFXM8jLBCsdT162Ht3528YqQHg3l2RYxofrm55XU+RkovZ/HhSPVJLWgaMSM8COF3 GtDeaDXnPsVrWpucpv9AQpGUeoDmq0LB3zRxHPoU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , kbuild test robot , Alexandre Belloni , Sasha Levin Subject: [PATCH 5.5 091/399] rtc: i2c/spi: Avoid inclusion of REGMAP support when not needed Date: Fri, 21 Feb 2020 08:36:56 +0100 Message-Id: <20200221072411.186325710@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072402.315346745@linuxfoundation.org> References: <20200221072402.315346745@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven [ Upstream commit 34719de919af07682861cb0fa2bcf64da33ecf44 ] Merely enabling I2C and RTC selects REGMAP_I2C and REGMAP_SPI, even when no driver needs it. While the former can be moduler, the latter cannot, and thus becomes built-in. Fix this by moving the select statements for REGMAP_I2C and REGMAP_SPI from the RTC_I2C_AND_SPI helper to the individual drivers that depend on it. Note that the comment for RTC_I2C_AND_SPI refers to SND_SOC_I2C_AND_SPI for more information, but the latter does not select REGMAP_{I2C,SPI} itself, and defers that to the individual drivers, too. Fixes: 080481f54ef62121 ("rtc: merge ds3232 and ds3234") Signed-off-by: Geert Uytterhoeven Reported-by: kbuild test robot Reported-by: kbuild test robot Link: https://lore.kernel.org/r/20200112171349.22268-1-geert@linux-m68k.org Signed-off-by: Alexandre Belloni Signed-off-by: Sasha Levin --- drivers/rtc/Kconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index d77515d8382c7..738fa07188409 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -848,14 +848,14 @@ config RTC_I2C_AND_SPI default m if I2C=m default y if I2C=y default y if SPI_MASTER=y - select REGMAP_I2C if I2C - select REGMAP_SPI if SPI_MASTER comment "SPI and I2C RTC drivers" config RTC_DRV_DS3232 tristate "Dallas/Maxim DS3232/DS3234" depends on RTC_I2C_AND_SPI + select REGMAP_I2C if I2C + select REGMAP_SPI if SPI_MASTER help If you say yes here you get support for Dallas Semiconductor DS3232 and DS3234 real-time clock chips. If an interrupt is associated @@ -875,6 +875,8 @@ config RTC_DRV_DS3232_HWMON config RTC_DRV_PCF2127 tristate "NXP PCF2127" depends on RTC_I2C_AND_SPI + select REGMAP_I2C if I2C + select REGMAP_SPI if SPI_MASTER select WATCHDOG_CORE if WATCHDOG help If you say yes here you get support for the NXP PCF2127/29 RTC @@ -891,6 +893,8 @@ config RTC_DRV_PCF2127 config RTC_DRV_RV3029C2 tristate "Micro Crystal RV3029/3049" depends on RTC_I2C_AND_SPI + select REGMAP_I2C if I2C + select REGMAP_SPI if SPI_MASTER help If you say yes here you get support for the Micro Crystal RV3029 and RV3049 RTC chips. -- 2.20.1