Commit b587a963 authored by Daniel Ritz's avatar Daniel Ritz Committed by Linus Torvalds

[PATCH] Stop APM initialization race from oopsing

apm_driver_version() isn't an __init function, but is called from the
asynchronous APM driver thread (which might run after the init sequence
has finished).

This trivial fix stops APM from oopsing when compiled as module.
parent b0fd930f
......@@ -718,7 +718,7 @@ static u8 apm_bios_call_simple(u32 func, u32 ebx_in, u32 ecx_in, u32 *eax)
* same format.
*/
static int __init apm_driver_version(u_short *val)
static int apm_driver_version(u_short *val)
{
u32 eax;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment