提交 474de3bb 编写于 作者: D Danny Kukawka 提交者: Greg Kroah-Hartman

cs5535-mfgpt: don't call __init function from __devinit

Fix scan_timers() to be __devinit and not __init since
the function get called from cs5535_mfgpt_probe which is
__devinit.
Signed-off-by: NDanny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 3e5ba466
...@@ -262,7 +262,7 @@ static void __init reset_all_timers(void) ...@@ -262,7 +262,7 @@ static void __init reset_all_timers(void)
* In other cases (such as with VSAless OpenFirmware), the system firmware * In other cases (such as with VSAless OpenFirmware), the system firmware
* leaves timers available for us to use. * 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 }; struct cs5535_mfgpt_timer timer = { .chip = mfgpt };
unsigned long flags; unsigned long flags;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册