From patchwork Wed Feb 25 10:31:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 45034 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DE43020502 for ; Wed, 25 Feb 2015 10:31:30 +0000 (UTC) Received: by labge10 with SMTP id ge10sf2149351lab.3 for ; Wed, 25 Feb 2015 02:31:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=/R9V4KhWZdNqfX3gaQ0Rw/M9cuzVQPmAA6tq2vMzFrA=; b=fmLL96pTSeOYjSO8HytcZLx4u+K+SOGzjsDojEQx8vsBh85NcqihpFS29+Xmjbn4YM 21P9MT7YqZOC6R0gguC0e/576aYh1FyQf3s2iFC3q1863n9d2Dr3uU3jfG/lg2pun2lD FP1OuLVA4o0fukcrlFC5qKwqrHb/LbpBPYmHop2NO2eR1XtzLNy24iR6wkCu6BBAUH3p IXNXBxqqIV1nCc4XXyF1HBazp4CeaoGHbTWrYKCI+8v3+deDN+fi957svAT8EpZ7fpGQ awOA3D22WqYDZUTJn+uvjNHCRmUeRurLB+duJMo8vKiMhd9Ffd57isZfk8KDlAeDlQ8N N6tQ== X-Gm-Message-State: ALoCoQkS/1elK9WbZJ+YgJx016/NYaRYdhicXPu8svz4A8FcY2Mb5Gf0I1oZJ9mMxF5jMaUBTKOF X-Received: by 10.180.160.176 with SMTP id xl16mr1890897wib.6.1424860289813; Wed, 25 Feb 2015 02:31:29 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.115.207 with SMTP id jq15ls797185lab.107.gmail; Wed, 25 Feb 2015 02:31:29 -0800 (PST) X-Received: by 10.152.243.4 with SMTP id wu4mr2140140lac.33.1424860289580; Wed, 25 Feb 2015 02:31:29 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id dc10si19704037lad.77.2015.02.25.02.31.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2015 02:31:29 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by labgf13 with SMTP id gf13so2917440lab.0 for ; Wed, 25 Feb 2015 02:31:29 -0800 (PST) X-Received: by 10.112.181.41 with SMTP id dt9mr2260356lbc.56.1424860289380; Wed, 25 Feb 2015 02:31:29 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp2525581lbj; Wed, 25 Feb 2015 02:31:28 -0800 (PST) X-Received: by 10.68.245.196 with SMTP id xq4mr4309597pbc.124.1424860287334; Wed, 25 Feb 2015 02:31:27 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pa1si2134029pac.136.2015.02.25.02.31.26; Wed, 25 Feb 2015 02:31:27 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753054AbbBYKbW (ORCPT + 28 others); Wed, 25 Feb 2015 05:31:22 -0500 Received: from mail-we0-f180.google.com ([74.125.82.180]:36673 "EHLO mail-we0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751682AbbBYKbU (ORCPT ); Wed, 25 Feb 2015 05:31:20 -0500 Received: by wevk48 with SMTP id k48so2675517wev.3 for ; Wed, 25 Feb 2015 02:31:19 -0800 (PST) X-Received: by 10.180.187.200 with SMTP id fu8mr5396990wic.28.1424860279606; Wed, 25 Feb 2015 02:31:19 -0800 (PST) Received: from localhost.localdomain (135-224-190-109.dsl.ovh.fr. [109.190.224.135]) by mx.google.com with ESMTPSA id nb9sm24522798wic.3.2015.02.25.02.31.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Feb 2015 02:31:17 -0800 (PST) From: Daniel Lezcano To: mingo@kernel.org, tglx@linutronix.de Cc: matthias.bgg@gmail.com, robert.jarzmik@free.fr, linux@roeck-us.net, linux@rempel-privat.de, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] clockevents: asm9260: Fix compilation error with sparc/sparc64 allyesconfig Date: Wed, 25 Feb 2015 11:31:14 +0100 Message-Id: <1424860276-18334-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <54EDA19F.7050903@linaro.org> References: <54EDA19F.7050903@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The Kconfig options for the asm9260 timer is wrong as it can be selected by another platform with allyes config and thus leading to a compilation failure as some non arch related code is pulled by the compilation. Fix this by having the platform Kconfig to select the timer as it is done for the others drivers. Signed-off-by: Daniel Lezcano Acked-by: Guenter Roeck Acked-by: Oleksij Rempel Conflicts: drivers/clocksource/Kconfig --- arch/arm/mach-asm9260/Kconfig | 2 ++ drivers/clocksource/Kconfig | 16 +++++----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-asm9260/Kconfig b/arch/arm/mach-asm9260/Kconfig index 8423be7..5224120 100644 --- a/arch/arm/mach-asm9260/Kconfig +++ b/arch/arm/mach-asm9260/Kconfig @@ -2,5 +2,7 @@ config MACH_ASM9260 bool "Alphascale ASM9260" depends on ARCH_MULTI_V5 select CPU_ARM926T + select ASM9260_TIMER + select GENERIC_CLOCKEVENTS help Support for Alphascale ASM9260 based platform. diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 1c2506f..68161f7 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -63,6 +63,11 @@ config VT8500_TIMER config CADENCE_TTC_TIMER bool +config ASM9260_TIMER + bool + select CLKSRC_MMIO + select CLKSRC_OF + config CLKSRC_NOMADIK_MTU bool depends on (ARCH_NOMADIK || ARCH_U8500) @@ -245,15 +250,4 @@ config CLKSRC_PXA help This enables OST0 support available on PXA and SA-11x0 platforms. - -config ASM9260_TIMER - bool "Alphascale ASM9260 timer driver" - depends on GENERIC_CLOCKEVENTS - select CLKSRC_MMIO - select CLKSRC_OF - default y if MACH_ASM9260 - help - This enables build of a clocksource and clockevent driver for - the 32-bit System Timer hardware available on a Alphascale ASM9260. - endmenu