Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Danny Kukawka and committed by
Greg Kroah-Hartman
474de3bb 3e5ba466

+1 -1
+1 -1
drivers/misc/cs5535-mfgpt.c
··· 262 262 * In other cases (such as with VSAless OpenFirmware), the system firmware 263 263 * leaves timers available for us to use. 264 264 */ 265 - static int __init scan_timers(struct cs5535_mfgpt_chip *mfgpt) 265 + static int __devinit scan_timers(struct cs5535_mfgpt_chip *mfgpt) 266 266 { 267 267 struct cs5535_mfgpt_timer timer = { .chip = mfgpt }; 268 268 unsigned long flags;