From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DE3EC433DB for ; Sun, 3 Jan 2021 14:01:21 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3B05020DD4 for ; Sun, 3 Jan 2021 14:01:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B05020DD4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=a/C8ObuE1s11izNp/rFNhoTAT+PdNktH0DbPodKt0So=; b=izLHKe/XQ+nJnr8aj5yc6DvtKu aCCONgWKW0EKD0oiZT6+AdhIqfaK/lgpexRjGFFzsgE8GPDYvVSR0P/G3JZs+SxQG1dIKbKwlQ39p DcldR98QzSKfGWZr6vufJS/l78nqYkQRSClLEBc748Hez0btWPlZINXRVRjKLM/lb9wqp33ZT87cR qvQEBHfp1h5HDfFZkR+GzVtw0xfHdMsyAAjNDic5wgPRoJaedCi4Xxt4xHAOq8GxsqZKhOdmpvgGS ILv6l2C/ERcXo3rxEfx2dFd7IsmF28BCrOGrnrDKECiF0Q3/denkc2w0Y2/LuCTY5tZa+/btthMO3 Fx+b4NgA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kw3vQ-0000jW-CZ; Sun, 03 Jan 2021 14:00:04 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kw3vM-0000iA-Hn for linux-arm-kernel@lists.infradead.org; Sun, 03 Jan 2021 14:00:01 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id ED63920782; Sun, 3 Jan 2021 13:59:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609682399; bh=BGD2k4AOyUbJm0QNORL1L22JdnB3YSYyPVCNdaj6s/A=; h=From:To:Cc:Subject:Date:From; b=RxDhEbIHU3bAdGBMwBVtOxCSm6idQqLMo59kfBOTeQTx2rDGdmZYl3QzeF/m3dN6n 9dhRVkZh89KHF5K7h9pG16IBzkO7C32Y74z1VMFPsKN7D9f+oGXWiEiZX3ybnteudR m6TcxlhdDeah9WyMsRY8fEnQmgpHGNNm7vTyJ/w13S1crAUqsRlMcerPAuGdTMWvgS +FCBqKJ9A+VWJTULJXhTOib/DKimT1X03A2aebbOjobokCqCC9zWPmGxhAaKgre+G7 5qaXHWid+dUdAocEaenX7XhS8vchc/OUFhH/vPYuntp7EGA4tG+VA2pGbVgaPUYeXP TWwAVAJQczM5w== From: Arnd Bergmann To: Daniel Lezcano , Thomas Gleixner Subject: [PATCH] clocksource: ixp4xx: select TIMER_OF when needed Date: Sun, 3 Jan 2021 14:59:24 +0100 Message-Id: <20210103135955.3808976-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210103_090000_679439_63ED7850 X-CRM114-Status: GOOD ( 12.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Linus Walleij , linux-kernel@vger.kernel.org, Krzysztof Halasa , Imre Kaloz , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann Compile-testing the ixp4xx timer with CONFIG_OF enabled but CONFIG_TIMER_OF disabled leads to a harmless warning: arm-linux-gnueabi-ld: warning: orphan section `__timer_of_table' from `drivers/clocksource/timer-ixp4xx.o' being placed in section `__timer_of_table' Move the select statement from the platform code into the driver so it always gets enabled in configurations that rely on it. Fixes: 40df14cc5cc0 ("clocksource/drivers/ixp4xx: Add OF initialization support") Signed-off-by: Arnd Bergmann --- arch/arm/mach-ixp4xx/Kconfig | 1 - drivers/clocksource/Kconfig | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-ixp4xx/Kconfig b/arch/arm/mach-ixp4xx/Kconfig index f7211b57b1e7..165c184801e1 100644 --- a/arch/arm/mach-ixp4xx/Kconfig +++ b/arch/arm/mach-ixp4xx/Kconfig @@ -13,7 +13,6 @@ config MACH_IXP4XX_OF select I2C select I2C_IOP3XX select PCI - select TIMER_OF select USE_OF help Say 'Y' here to support Device Tree-based IXP4xx platforms. diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 14c7c4712478..66be9ea69e33 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -79,6 +79,7 @@ config IXP4XX_TIMER bool "Intel XScale IXP4xx timer driver" if COMPILE_TEST depends on HAS_IOMEM select CLKSRC_MMIO + select TIMER_OF if OF help Enables support for the Intel XScale IXP4xx SoC timer. -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel