From: Danny Kukawka Date: Wed, 8 Feb 2012 22:16:47 +0000 (-0800) Subject: cs5535-mfgpt: don't call __init function from __devinit X-Git-Tag: upstream/snapshot3+hdmi~7965^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=815b043ddac433eecb2899cb2090495b27f77aac;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git cs5535-mfgpt: don't call __init function from __devinit Fix and reset_all_timers() to be __devinit and not __init since the function gets called from cs5535_mfgpt_probe which is __devinit. Signed-off-by: Danny Kukawka Acked-by: Andres Salomon Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/cs5535-mfgpt.c b/drivers/misc/cs5535-mfgpt.c index bc685bf..f836359 100644 --- a/drivers/misc/cs5535-mfgpt.c +++ b/drivers/misc/cs5535-mfgpt.c @@ -246,7 +246,7 @@ EXPORT_SYMBOL_GPL(cs5535_mfgpt_write); * Jordan tells me that he and Mitch once played w/ it, but it's unclear * what the results of that were (and they experienced some instability). */ -static void __init reset_all_timers(void) +static void __devinit reset_all_timers(void) { uint32_t val, dummy;