]> err.no Git - linux-2.6/commit
[PATCH] apm: clean up module initalization
authorNeil Horman <nhorman@tuxdriver.com>
Tue, 26 Sep 2006 06:32:21 +0000 (23:32 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:55 +0000 (08:48 -0700)
commitc94a62aae6ebc99b416e55c023b6f5a1d19a400b
tree9176d4e723f6c427afef069b64753e1b1141afdb
parent3a750363e6075a28e5542ce93a69c620c0cfd605
[PATCH] apm: clean up module initalization

Clean up module initalization for apm.c.  I had started by auditing for
proper return code checks in misc_register, but I found that in the event
of an initalization failure, a proc file and a kernel thread were left
hanging out.  this patch properly cleans up those loose ends on any
initalization failure.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/apm.c