Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp214480pxb; Tue, 2 Feb 2021 03:24:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+iGb47HgF4oHhSYGkGrXdnN/98sSlU2j5oxvH/AT7Bz/53YEnAJj7CVEzU1roDkbySSp+ X-Received: by 2002:a05:6402:34c5:: with SMTP id w5mr23348304edc.65.1612265061261; Tue, 02 Feb 2021 03:24:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612265061; cv=none; d=google.com; s=arc-20160816; b=q5SopYbTIbaHUrq1nDR8NkAJzsw9PK8N31LJ3h54a5xBZDTsymENBz9IjVyIysmtYZ W1pMRuaYkdEywE+JyZf9T/brWMk7VOgJWIKBvaU9KGePjimsr8GfB49+0Cupuzz9GUQj b6xkp4o/ri5MX2PHk2uch5TqCTa+7OYWW4can6tdVzwAs/Pls6col5zqeePtK8uj6e09 xBoe3bFS4TxT0YYRq+2/KwfSuOcaY5KlO/2nlZK6JGLBn3GVqEs5wD/Abe5kzTIZPu4r rHyKG5G4cSXXslqZ4QxyjDLIytecMAl8faI5GvuWsggGn3cEiOP5k+oGFzS3GaKo9EkP C2tQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8DmOrtLQzFsAd84PTd3EIRR02tpD4Zo8U/ISfd9gnXc=; b=gCi7AM+fTt3lnuffc74h5WlLF7b9TTQXe1ZrB4pRL5rkTSeDZqy9Nef66AdAy+Ac6w FDZLnMzDu19RKT64K1Z6GjeCkMrTlqvvaEueTlp57j47c4AC1ydwDm/EC8y5++Ju5bPc TzMWceAe/QVi5CIbhFqQpeGju8rs/mOvdzUOt/aL3e5MNDD7K38bJZ6aG56Nhg6XiQLH AcBshFTtSn6DqkV6K5z/t8teaPWeUYkwBVdVkt0UgnNw2NgakDAMfOe7ndnn4aNtJ9my zPKJU8HkK/pOLzolRh73N+JzxipLAWy4le+z0vjbeKmgFkkwbtJuxeB7EjSeCl/vwSJQ 0Ejw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si15150786edd.595.2021.02.02.03.23.56; Tue, 02 Feb 2021 03:24:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230111AbhBBLXK (ORCPT + 99 others); Tue, 2 Feb 2021 06:23:10 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:52041 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbhBBLXH (ORCPT ); Tue, 2 Feb 2021 06:23:07 -0500 X-Originating-IP: 86.202.109.140 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id B4E146000F; Tue, 2 Feb 2021 11:22:24 +0000 (UTC) From: Alexandre Belloni To: linux-rtc@vger.kernel.org, Alessandro Zummo , Alexandre Belloni Cc: linux-kernel@vger.kernel.org Subject: [PATCH 02/21] rtc: armada38x: depend on OF Date: Tue, 2 Feb 2021 12:21:59 +0100 Message-Id: <20210202112219.3610853-3-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210202112219.3610853-1-alexandre.belloni@bootlin.com> References: <20210202112219.3610853-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver will compile with warning without OF because armada38x_data and armada8k_data will be defined but not used. It would be possible to move then in the #ifdef CONFIG_OF section but then their members will be defined but not used. Instead of moving most of the driver in the #ifdef, simply depend on OF. Signed-off-by: Alexandre Belloni --- drivers/rtc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index e1576754a50f..68ae202e0716 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -1594,6 +1594,7 @@ config RTC_DRV_MV config RTC_DRV_ARMADA38X tristate "Armada 38x Marvell SoC RTC" depends on ARCH_MVEBU || COMPILE_TEST + depends on OF help If you say yes here you will get support for the in-chip RTC that can be found in the Armada 38x Marvell's SoC device -- 2.29.2