From patchwork Wed Jan 13 23:02:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101165 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3653143lbb; Wed, 13 Jan 2016 15:03:13 -0800 (PST) X-Received: by 10.98.9.75 with SMTP id e72mr1073297pfd.29.1452726193784; Wed, 13 Jan 2016 15:03:13 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id un7si4803579pac.228.2016.01.13.15.03.13; Wed, 13 Jan 2016 15:03:13 -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; 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 S1753164AbcAMXDK (ORCPT + 29 others); Wed, 13 Jan 2016 18:03:10 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:60757 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751923AbcAMXDH (ORCPT ); Wed, 13 Jan 2016 18:03:07 -0500 Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0MKqqe-1aJUQm11nc-000101; Thu, 14 Jan 2016 00:02:20 +0100 From: Arnd Bergmann To: Daniel Lezcano , Thomas Gleixner Cc: linux-kernel@vger.kernel.org, Xiubo Li , Shawn Guo , Sascha Hauer , Stefan Agner , linux-arm-kernel@lists.infradead.org Subject: [PATCH] clocksource: ftm: select CLKSRC_MMIO Date: Thu, 14 Jan 2016 00:02:13 +0100 Message-ID: <11970328.RVc8t0Mk1C@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:28G38dJIBFl83wRazOcWnt9Ndd3FjmTYoZri74LKHP84KP6RC/v cOU71blgTsamVQdnIDulEd/D4+PeZ6jED9hJESj+7vKUIxyN30b52VhQk6S0Frs9E+8c3iC haF5Va4vjc9UIb9XVwCng7wRWl8IgVhAmlDx0oZSjCgSIXKvz6Iwb3Z99BohvO34S0MLDjA 8p4Gc+7kIaaXcd3KLL8UQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:PIQUElvQNdY=:euW5CLwwGys+nWe8x+FvfA 6lhC9OkLyvutl4hy95jjUPKk6rCVvqVFPRXRLITxOSzQj4a8Kg/3fcoNC0Ti08+j5J4DmY1EC nXFbR1xy7m8iaPJ8Q5cN6TjUALL18S+Ch0cZb9ZJ31Kue1zy631vLUC/psE1huPSSAis68Fuw CYNrd2w2YzYPj9qZSybazsWXWiBsMEI8DM86yzgcpJVYHw4mzY2u2zxGy4upRKjM19/0DRyxA vesHWL28n53z0M3va2Q2PsPSSS4dcRg/H0JYy8Tz6hbxQDu0zTyknUzYbKNez8yjhUrO7btEN X4gQHBsfB8xyqMYnEbwV3zB3ikSjBqAqR5kjNaY4vP/pk79pS9PhSoPXbWWNnVwM0x/NO2XFK WIjj7xnBj2u1FFl7+jXm+Zhyc9pB9ZyiMkrrUDR30s0ZS2pE4gsISe87KZ1CNaBndyGa1C9/y b9CNVw9KlHz1Lov7b7E/6A894MltXPYKmT3soQWuqBd+iqLnPJ2gLuuCYIeibxPLY0+mAHkhM m/eu/cWjmSRlomMdgOn+HMfpvSmm8to77v31OOZB89aD2Zjh50K1nhpcNSDrpEjOOyHbyNe7R Xr4YcrxPFSrXlQsibXDImDq5blA8sZYvVuUAll9nhYH9G035CrSJNeveOQtkvv7OcWoefTZlJ K4b0jA53HUp4/+GmwUULi0c5B/i2MzaRkdnTkq04Lt8x/F6vn6gQT6jfaYLa1eA5N525k3pF0 WoYNn4+K4cRBiYdO Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ftm clocksource driver does not build if CLKSRC_MMIO is disabled: drivers/built-in.o: In function `ftm_timer_init': (init.text+0xd324): undefined reference to `clocksource_mmio_init' (init.text+0xd484): undefined reference to `clocksource_mmio_readl_up' This adds the same 'select' statement that the other similar drivers use. Prior to allowing this driver to be enabled with COMPILE_TEST, it was apparently unused. I'm not entirely sure who is using this hardware, but it certainly can't hurt to ensure it builds cleanly. Signed-off-by: Arnd Bergmann Fixes: ef49336bbd15 ("clocksource/drivers/fsl-ftm: Add the COMPILE_TEST option") diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index b251013eef0a..d3ad9512312b 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -256,6 +256,7 @@ config CLKSRC_SAMSUNG_PWM config FSL_FTM_TIMER bool "Freescale FlexTimer Module driver" if COMPILE_TEST depends on GENERIC_CLOCKEVENTS + select CLKSRC_MMIO help Support for Freescale FlexTimer Module (FTM) timer.