summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions/network/16-bluetooth/net_bluetooth_hidp_sock.patch
blob: f3bf801917501608e42439bcbe35165a7202d756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/net/bluetooth/hidp/sock.c
+++ b/net/bluetooth/hidp/sock.c
@@ -235,8 +235,12 @@
 	.obj_size	= sizeof(struct bt_sock)
 };
 
+#if defined(CPTCFG_BACKPORT_BT_SOCK_CREATE_NEEDS_KERN)
 static int hidp_sock_create(struct net *net, struct socket *sock, int protocol,
 			    int kern)
+#else
+static int hidp_sock_create(struct net *net, struct socket *sock, int protocol)
+#endif
 {
 	struct sock *sk;