]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/params.c
Fix compile warning in kernel/params.c
[linux-2.6-omap-h63xx.git] / kernel / params.c
index b077f1b045d3c6e33447a8c9568c8c7f5ced1fa2..a1e3025b19a9aed003967a0a9e2ff3d05456428b 100644 (file)
@@ -510,6 +510,7 @@ fail:
        return err;
 }
 
+#ifdef CONFIG_MODULES
 static void free_module_param_attrs(struct module_kobject *mk)
 {
        kfree(mk->mp->grp.attrs);
@@ -517,7 +518,6 @@ static void free_module_param_attrs(struct module_kobject *mk)
        mk->mp = NULL;
 }
 
-#ifdef CONFIG_MODULES
 /*
  * module_param_sysfs_setup - setup sysfs support for one module
  * @mod: module