]> git.karo-electronics.de Git - linux-beck.git/commitdiff
cs5535-mfgpt: don't call __init function from __devinit
authorDanny Kukawka <danny.kukawka@bisect.de>
Wed, 8 Feb 2012 22:16:47 +0000 (14:16 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 16:49:30 +0000 (08:49 -0800)
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 <danny.kukawka@bisect.de>
Acked-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cs5535-mfgpt.c

index bc685bfc4c33aaacf89a5dc7205943bd69f14f8d..f836359226aca2c5213a03403cf39daa99367a58 100644 (file)
@@ -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;