]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/bluetooth/af_bluetooth.c
net: Remove CONFIG_KMOD from net/ (towards removing CONFIG_KMOD entirely)
[karo-tx-linux.git] / net / bluetooth / af_bluetooth.c
index f6348e078aa434077bf26c57ffb8f0eabf4ecbe3..8f9431a12c6f36ed5f8d3ad2b28f765120824d7b 100644 (file)
 #include <linux/poll.h>
 #include <net/sock.h>
 #include <asm/ioctls.h>
-
-#if defined(CONFIG_KMOD)
 #include <linux/kmod.h>
-#endif
 
 #include <net/bluetooth/bluetooth.h>
 
@@ -145,11 +142,8 @@ static int bt_sock_create(struct net *net, struct socket *sock, int proto)
        if (proto < 0 || proto >= BT_MAX_PROTO)
                return -EINVAL;
 
-#if defined(CONFIG_KMOD)
-       if (!bt_proto[proto]) {
+       if (!bt_proto[proto])
                request_module("bt-proto-%d", proto);
-       }
-#endif
 
        err = -EPROTONOSUPPORT;