]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/moduleparam.h
param: fix charp parameters set via sysfs
[linux-2.6-omap-h63xx.git] / include / linux / moduleparam.h
index e4af3399ef48ae862cdadd95832a96ac1bca2ffe..a4f0b931846c25e2e0db59e863490287f62d4b63 100644 (file)
@@ -138,6 +138,16 @@ extern int parse_args(const char *name,
                      unsigned num,
                      int (*unknown)(char *param, char *val));
 
+/* Called by module remove. */
+#ifdef CONFIG_SYSFS
+extern void destroy_params(const struct kernel_param *params, unsigned num);
+#else
+static inline void destroy_params(const struct kernel_param *params,
+                                 unsigned num)
+{
+}
+#endif /* !CONFIG_SYSFS */
+
 /* All the helper functions */
 /* The macros to do compile-time type checking stolen from Jakub
    Jelinek, who IIRC came up with this idea for the 2.4 module init code. */