Subject: remove CONFIG_KMOD from lib
Date: Tue, 08 Jul 2008 19:00:24 +0200
From: Johannes Berg <johannes@sipsolutions.net>

textsearch algorithms can be loaded, make the code depend
on CONFIG_MODULES instead of CONFIG_KMOD.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 lib/textsearch.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -u
--- everything.orig/lib/textsearch.c	2008-07-08 18:54:03.000000000 +0200
+++ everything/lib/textsearch.c	2008-07-08 18:59:04.000000000 +0200
@@ -264,7 +264,7 @@ struct ts_config *textsearch_prepare(con
 		return ERR_PTR(-EINVAL);
 
 	ops = lookup_ts_algo(algo);
-#ifdef CONFIG_KMOD
+#ifdef CONFIG_MODULES
 	/*
 	 * Why not always autoload you may ask. Some users are
 	 * in a situation where requesting a module may deadlock,

