mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: linux@roeck-us.net, linux-kernel@vger.kernel.org
Cc: linux@rempel-privat.de, tglx@linutronix.de
Subject: [PATCH] clockevents: asm9260: Fix compilation error with sparc/sparc64 allyesconfig
Date: Mon, 23 Feb 2015 20:00:51 +0100	[thread overview]
Message-ID: <1424718051-18946-1-git-send-email-daniel.lezcano@linaro.org> (raw)
In-Reply-To: <20150223175716.GA22430@roeck-us.net>

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 <daniel.lezcano@linaro.org>
---
 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 72a3827..f9c1995 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -60,6 +60,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)
@@ -235,15 +240,4 @@ config CLKSRC_MIPS_GIC
 	bool
 	depends on MIPS_GIC
 	select CLKSRC_OF
-
-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
-- 
1.9.1


  parent reply	other threads:[~2015-02-23 19:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-09 10:18 linux-next: Tree for Feb 9 Stephen Rothwell
2015-02-09 17:20 ` linux-next: Tree for Feb 9 (build failures) Guenter Roeck
2015-02-10  7:07   ` Oleksij Rempel
2015-02-10 12:14     ` Guenter Roeck
2015-02-10 15:57       ` [PATCH] clocksource: whitelist asm9260_timer driver for ARM Oleksij Rempel
2015-02-18  7:17         ` Guenter Roeck
2015-02-18  8:47           ` Daniel Lezcano
2015-02-23 17:48           ` Daniel Lezcano
2015-02-23 17:57             ` Guenter Roeck
2015-02-23 18:57               ` Daniel Lezcano
2015-02-23 19:00               ` Daniel Lezcano [this message]
2015-02-23 19:10                 ` [PATCH] clockevents: asm9260: Fix compilation error with sparc/sparc64 allyesconfig Guenter Roeck
2015-02-23 20:27                   ` Oleksij Rempel
2015-02-23 20:34                     ` Guenter Roeck
2015-02-23 20:46                       ` Oleksij Rempel
2015-02-23 20:49                         ` Guenter Roeck
2015-02-23 21:21                         ` Daniel Lezcano
2015-02-24  5:16                           ` Oleksij Rempel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1424718051-18946-1-git-send-email-daniel.lezcano@linaro.org \
    --to=daniel.lezcano@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@rempel-privat.de \
    --cc=linux@roeck-us.net \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®