cs5535-mfgpt: don't call __init function from __devinit
PATCH v2 1/1 cs5535-mfgpt: don't call __init function from __devinit
Fix scan_timers() and reset_all_timers() to be __devinit and not __init since the function get called from cs5535_mfgpt_probe which is __devinit.
v2: set also reset_all_timers() to __devinit
Signed-off-by Danny Kukawka <[email protected]>
--- drivers/misc/cs5535-mfgpt.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/misc/cs5535-mfgpt.c +2 -2
@@ -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;
@@ -262,7 +262,7 @@ static void __init reset_all_timers(void)* In other cases (such as with VSAless OpenFirmware), the system firmware * leaves timers available for us to use. */ -static int __init scan_timers (struct cs5535_mfgpt_chip *mfgpt) +static int __devinit scan_timers (struct cs5535_mfgpt_chip *mfgpt) {struct cs5535_mfgpt_timer timer = { .chip = mfgpt };unsigned long flags;
Signature · 1 line
1.7.7.3
Quoted 7 lines · On Tue, 7 Feb 2012 13:41:10 +0100 Danny Kukawka <[email protected]>…
Fix
scan_timers()andreset_all_timers()to be__devinitand not__initsince the function get called fromcs5535_mfgpt_probewhich is__devinit.v2: set also
reset_all_timers()to__devinitSigned-off-by Danny Kukawka <[email protected]>
Acked-by Andres Salomon <[email protected]>
Thanks!
Quoted 28 lines
--- drivers/misc/cs5535-mfgpt.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)drivers/misc/cs5535-mfgpt.c +0
-0@@ -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). */drivers/misc/cs5535-mfgpt.c +1
-1-static void __init reset_all_timers (void ) +static void __devinit reset_all_timers (void ) {uint32_t val, dummy;@@ -262,7 +262,7 @@ static void __init reset_all_timers(void)* In other cases (such as with VSAless OpenFirmware), the system firmware
* leaves timers available for us to use.
*/drivers/misc/cs5535-mfgpt.c +1
-1-static int __init scan_timers (struct cs5535_mfgpt_chip *mfgpt) +static int __devinit scan_timers (struct cs5535_mfgpt_chip *mfgpt) {struct cs5535_mfgpt_timer timer = { .chip = mfgpt };unsigned long flags;