Thread (6 messages) 6 messages, 4 authors, 2006-10-02

Re: [PATCH 2/2] enable generic rtc hook for the MPC8349 mITX

From: Tom Rini <hidden>
Date: 2006-09-27 15:58:55

On Tue, Sep 26, 2006 at 11:34:43PM -0500, Kumar Gala wrote:
On Sep 26, 2006, at 5:46 PM, Kim Phillips wrote:
[snip]
quoted
diff --git a/arch/powerpc/platforms/83xx/mpc834x_itx.c b/arch/ 
powerpc/platforms/83xx/mpc834x_itx.c
index 969fbb6..8c676d7 100644
--- a/arch/powerpc/platforms/83xx/mpc834x_itx.c
+++ b/arch/powerpc/platforms/83xx/mpc834x_itx.c
@@ -109,6 +109,10 @@ static int __init mpc834x_itx_probe(void
 	return 1;
 }

+#ifdef CONFIG_RTC_CLASS
+late_initcall(rtc_class_hookup);
+#endif
Any reason we can't just do this in setup_arch?
I think because of rtc-over-i2c and similar where we need the whole rest
of the system 'up' before we can try and use the RTC (which might not be
the case for this specific board, but for consistency it looks like a
good thing to always do it like this).

-- 
Tom Rini
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help