From: lee.jones@linaro.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 7/7] ARM: ux500: Remove checking for DT during timer init as we are now DT only
Date: Wed, 6 Nov 2013 10:05:48 +0000 [thread overview]
Message-ID: <1383732348-18576-8-git-send-email-lee.jones@linaro.org> (raw)
In-Reply-To: <1383732348-18576-1-git-send-email-lee.jones@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
arch/arm/mach-ux500/timer.c | 28 ++++++++--------------------
1 file changed, 8 insertions(+), 20 deletions(-)
diff --git a/arch/arm/mach-ux500/timer.c b/arch/arm/mach-ux500/timer.c
index 05a4ff7..ca60bbd 100644
--- a/arch/arm/mach-ux500/timer.c
+++ b/arch/arm/mach-ux500/timer.c
@@ -27,18 +27,11 @@ static DEFINE_TWD_LOCAL_TIMER(u8500_twd_local_timer,
static void __init ux500_twd_init(void)
{
struct twd_local_timer *twd_local_timer;
- int err;
/* Use this to switch local timer base if changed in new ASICs */
twd_local_timer = &u8500_twd_local_timer;
- if (of_have_populated_dt())
- clocksource_of_init();
- else {
- err = twd_local_timer_register(twd_local_timer);
- if (err)
- pr_err("twd_local_timer_register failed %d\n", err);
- }
+ clocksource_of_init();
}
#else
#define ux500_twd_init() do { } while(0)
@@ -63,20 +56,15 @@ void __init ux500_timer_init(void)
ux500_unknown_soc();
}
- /* TODO: Once MTU has been DT:ed place code above into else. */
- if (of_have_populated_dt()) {
-#ifdef CONFIG_OF
- np = of_find_matching_node(NULL, prcmu_timer_of_match);
- if (!np)
-#endif
- goto dt_fail;
+ np = of_find_matching_node(NULL, prcmu_timer_of_match);
+ if (!np)
+ goto dt_fail;
- tmp_base = of_iomap(np, 0);
- if (!tmp_base)
- goto dt_fail;
+ tmp_base = of_iomap(np, 0);
+ if (!tmp_base)
+ goto dt_fail;
- prcmu_timer_base = tmp_base;
- }
+ prcmu_timer_base = tmp_base;
dt_fail:
/* Doing it the old fashioned way. */
--
1.8.1.2
next prev parent reply other threads:[~2013-11-06 10:05 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-06 10:05 [PATCH 0/7] ARM: ux500: More DT only clean-ups for the platform Lee Jones
2013-11-06 10:05 ` [PATCH 1/7] ARM: ux500: Remove legacy ATAG SSP support Lee Jones
2013-11-06 11:58 ` Linus Walleij
2013-11-07 11:47 ` Russell King - ARM Linux
2013-11-07 11:52 ` Lee Jones
2013-11-06 10:05 ` [PATCH 2/7] ARM: ux500: Consolidate [A|D]8500 platform data Lee Jones
2013-11-06 12:01 ` Linus Walleij
2013-11-06 12:04 ` Lee Jones
[not found] ` <201311071253281097419@gmail.com>
2013-11-07 9:41 ` PINCTRL:We May need mutex protect in pinctrl API Linus Walleij
[not found] ` <201311071748050629542@gmail.com>
2013-11-18 13:22 ` Linus Walleij
2013-11-06 10:05 ` [PATCH 3/7] ARM: ux500: Remove ATAG support for SDI (MMC) Lee Jones
2013-11-07 11:40 ` Ulf Hansson
2013-11-07 12:07 ` Lee Jones
2013-11-08 9:06 ` Linus Walleij
2013-11-08 9:26 ` Lee Jones
2013-11-08 9:45 ` Linus Walleij
2013-11-07 11:46 ` Russell King - ARM Linux
2013-11-07 11:54 ` Lee Jones
2013-11-06 10:05 ` [PATCH 4/7] ARM: ux500: Clean-up non-DT IRQ initialisation Lee Jones
2013-11-19 20:45 ` Linus Walleij
2013-11-06 10:05 ` [PATCH 5/7] ARM: ux500: Remove unused call to register AMBA devices Lee Jones
2013-11-19 20:54 ` Linus Walleij
2013-11-06 10:05 ` [PATCH 6/7] ARM: ux500: Clean-up legacy extern prototype Lee Jones
2013-11-19 20:56 ` Linus Walleij
2013-11-06 10:05 ` Lee Jones [this message]
2013-11-19 20:58 ` [PATCH 7/7] ARM: ux500: Remove checking for DT during timer init as we are now DT only Linus Walleij
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=1383732348-18576-8-git-send-email-lee.jones@linaro.org \
--to=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).