Skip to content

Commit

Permalink
cs5535-mfgpt: don't call __init function from __devinit
Browse files Browse the repository at this point in the history
Fix scan_timers() to be __devinit and not __init since
the function get called from cs5535_mfgpt_probe which is
__devinit.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Danny Kukawka authored and Greg Kroah-Hartman committed Feb 3, 2012
1 parent 3e5ba46 commit 474de3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/cs5535-mfgpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 474de3b

Please sign in to comment.