Commit 30b85a5c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] cpia driver __exit fix

From: Andi Kleen <ak@muc.de>

This driver was bogusly relying on the dropping of the __exit section at link
time.  cpia_exit() is calling proc_cpia_destroy(), which doesn't even exist
if !CONFIG_MODULE.
parent 00b31e9a
...@@ -1409,12 +1409,10 @@ static void proc_cpia_create(void) ...@@ -1409,12 +1409,10 @@ static void proc_cpia_create(void)
LOG("Unable to initialise /proc/cpia\n"); LOG("Unable to initialise /proc/cpia\n");
} }
#ifdef MODULE static void __exit proc_cpia_destroy(void)
static void proc_cpia_destroy(void)
{ {
remove_proc_entry("cpia", 0); remove_proc_entry("cpia", 0);
} }
#endif /*MODULE*/
#endif /* CONFIG_PROC_FS */ #endif /* CONFIG_PROC_FS */
/* ----------------------- debug functions ---------------------- */ /* ----------------------- debug functions ---------------------- */
......
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