From patchwork Thu Oct 29 22:52:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 55804 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp833710lbr; Thu, 29 Oct 2015 15:53:46 -0700 (PDT) X-Received: by 10.66.132.37 with SMTP id or5mr4744962pab.5.1446159226224; Thu, 29 Oct 2015 15:53:46 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8si5769738pbu.107.2015.10.29.15.53.44; Thu, 29 Oct 2015 15:53:46 -0700 (PDT) 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; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030396AbbJ2Wxg (ORCPT + 28 others); Thu, 29 Oct 2015 18:53:36 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:34217 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030348AbbJ2Wx1 (ORCPT ); Thu, 29 Oct 2015 18:53:27 -0400 Received: by wmff134 with SMTP id f134so33654864wmf.1 for ; Thu, 29 Oct 2015 15:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=I1I30TrdUZjXc4ge373zX+Tj1RiwzGurPcnGxmAXDmY=; b=O+HupN9E96rymk9N7sf+1ja3S1VVoxQt/pRdvvZlLhrTQxQ0OIkZZxqvJbrwfR5DW5 gtINixYvo0K+4groEK3QvV0llsrYnr4TrE0JZU7Zqy86HxZBnUlBHF8mo/OyDBny9/dC fe5eCHnqpOy43zzSLuueVDuQt3AGhP8rZXdH1jFfo9unQc9R7teuYnTE8iRSNcFfSAP3 Xh7ggXTqnNSwBSQpeDXAKIPdNo4drqI/zbxh77Mt5RE6XOrYQ5T69Mpcg1HTWkgWWPAW J4xaqgx4o0f7BxkpKgIkkjpYQFXbGiqKG7+EMvdmzqrz8mAsuBO4Dby8Pbr5bNSJDTC0 auFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=I1I30TrdUZjXc4ge373zX+Tj1RiwzGurPcnGxmAXDmY=; b=kqrI3L3H+cdESAxWM6PLbCUTLgcm4ocuS9GijQzSPiZO5rRaACe0YWurF302s0uGHf WPFrMLkk2d1Vmh7xJAcsqP3pHkb/V7vT1wn46q+JYZyvz6SObVIrt3iSLd0qZ3xuqL/+ tzYsN/easx+Zf+XFkGB0T7xsoiPmSTiTNPbzN/U9PG5AWfbMxhJ8poGoe2eBJre0bZLu qAZWIbE82AvbTsOtIsaRNE5l0aZWQoM0+/9nf8aaBnsECrRb2QDn9QMxmZvKxpV3uT7C 8d8BMzAVbgOxDKgsdrNFt8iw1I6COLQg1SXabALLmhaERBDBM0tJwsu4Lz4kmsvck464 zq9Q== X-Gm-Message-State: ALoCoQmP2aPq/n0vMV7A1fdHPuZ/g/5+UIN1IpHzTQym5ScTQiCLdCbhbZ6acOZonr8Q5yafZEbt X-Received: by 10.28.217.18 with SMTP id q18mr9828280wmg.10.1446159206221; Thu, 29 Oct 2015 15:53:26 -0700 (PDT) Received: from localhost.localdomain (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.gmail.com with ESMTPSA id jh4sm4005701wjb.33.2015.10.29.15.53.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Oct 2015 15:53:25 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: john.stultz@linaro.org, linux-kernel@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org (moderated list:ARM PORT) Subject: [PATCH 5/7] clocksource/drivers/pxa_timer: Move the Kconfig rule Date: Thu, 29 Oct 2015 23:52:41 +0100 Message-Id: <1446159166-20384-5-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1446159166-20384-1-git-send-email-daniel.lezcano@linaro.org> References: <1446159166-20384-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of having the clocksource's Kconfig depending on the arch, let the arch to select the timer it needs. The CLKSRC_OF dependency is removed because already selected by the ARCH_PXA, and it is added for SA1100. Signed-off-by: Daniel Lezcano --- arch/arm/Kconfig | 3 +++ drivers/clocksource/Kconfig | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 72ad724..aa32286 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -609,6 +609,7 @@ config ARCH_PXA select AUTO_ZRELADDR select COMMON_CLK select CLKDEV_LOOKUP + select CLKSRC_PXA select CLKSRC_MMIO select CLKSRC_OF select GENERIC_CLOCKEVENTS @@ -669,6 +670,8 @@ config ARCH_SA1100 select ARCH_SPARSEMEM_ENABLE select CLKDEV_LOOKUP select CLKSRC_MMIO + select CLKSRC_PXA + select CLKSRC_OF if OF select CPU_FREQ select CPU_SA1100 select GENERIC_CLOCKEVENTS diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 5cd000c..425abbd 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -289,8 +289,7 @@ config CLKSRC_TANGO_XTAL select CLKSRC_OF config CLKSRC_PXA - def_bool y if ARCH_PXA || ARCH_SA1100 - select CLKSRC_OF if OF + bool help This enables OST0 support available on PXA and SA-11x0 platforms.