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>
This commit is contained in:
committed by
Rusty Russell
parent
04ab591808
commit
a65e5d782f
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user