aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/bnep/core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c
index 52a6ce0d772b..cafe9f54d841 100644
--- a/net/bluetooth/bnep/core.c
+++ b/net/bluetooth/bnep/core.c
@@ -533,6 +533,10 @@ static struct device *bnep_get_device(struct bnep_session *session)
533 return conn ? &conn->dev : NULL; 533 return conn ? &conn->dev : NULL;
534} 534}
535 535
536static struct device_type bnep_type = {
537 .name = "bluetooth",
538};
539
536int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock) 540int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
537{ 541{
538 struct net_device *dev; 542 struct net_device *dev;
@@ -586,6 +590,7 @@ int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
586#endif 590#endif
587 591
588 SET_NETDEV_DEV(dev, bnep_get_device(s)); 592 SET_NETDEV_DEV(dev, bnep_get_device(s));
593 SET_NETDEV_DEVTYPE(dev, &bnep_type);
589 594
590 err = register_netdev(dev); 595 err = register_netdev(dev);
591 if (err) { 596 if (err) {