diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-07-09 12:28:38 +0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-10-16 19:38:35 +0400 |
commit | a65e5d782f9db2a61a914dc01a329e0c2dcf92a1 (patch) | |
tree | 2143455a8bbcb49bbcef746e45f06e497f2eadfb /drivers/net/ppp_generic.c | |
parent | 04ab591808565f968d4406f6435090ad671ebdab (diff) | |
download | linux-a65e5d782f9db2a61a914dc01a329e0c2dcf92a1.tar.xz |
remove CONFIG_KMOD from drivers
Straight forward conversions to CONFIG_MODULE; many drivers
include <linux/kmod.h> conditionally and then don't have any
other conditional code so remove it from those.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: video4linux-list@redhat.com
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: linux-ppp@vger.kernel.org
Cc: dm-devel@redhat.com
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/net/ppp_generic.c')
-rw-r--r-- | drivers/net/ppp_generic.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 0ca0fcbb7c01..94818ee3cef5 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c @@ -2127,13 +2127,9 @@ ppp_set_compress(struct ppp *ppp, unsigned long arg) || ccp_option[1] < 2 || ccp_option[1] > data.length) goto out; - cp = find_compressor(ccp_option[0]); -#ifdef CONFIG_KMOD - if (!cp) { - request_module("ppp-compress-%d", ccp_option[0]); - cp = find_compressor(ccp_option[0]); - } -#endif /* CONFIG_KMOD */ + cp = try_then_request_module( + find_compressor(ccp_option[0]), + "ppp-compress-%d", ccp_option[0]); if (!cp) goto out; |