Commit 2de120ad authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] mpu401 uses __init vars during __exit

parent ad5b67ee
...@@ -1762,13 +1762,13 @@ EXPORT_SYMBOL(mpuintr); ...@@ -1762,13 +1762,13 @@ EXPORT_SYMBOL(mpuintr);
static struct address_info cfg; static struct address_info cfg;
static int __initdata io = -1; static int io = -1;
static int __initdata irq = -1; static int irq = -1;
MODULE_PARM(irq, "i"); MODULE_PARM(irq, "i");
MODULE_PARM(io, "i"); MODULE_PARM(io, "i");
int __init init_mpu401(void) static int __init init_mpu401(void)
{ {
int ret; int ret;
/* Can be loaded either for module use or to provide functions /* Can be loaded either for module use or to provide functions
...@@ -1785,7 +1785,7 @@ int __init init_mpu401(void) ...@@ -1785,7 +1785,7 @@ int __init init_mpu401(void)
return 0; return 0;
} }
void __exit cleanup_mpu401(void) static void __exit cleanup_mpu401(void)
{ {
if (io != -1 && irq != -1) { if (io != -1 && irq != -1) {
/* Check for use by, for example, sscape driver */ /* Check for use by, for example, sscape driver */
......
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