aboutsummaryrefslogtreecommitdiffstats
path: root/net/phonet/af_phonet.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/phonet/af_phonet.c')
-rw-r--r--net/phonet/af_phonet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/phonet/af_phonet.c b/net/phonet/af_phonet.c
index 0cfea9bc994a..a8ba6f177b29 100644
--- a/net/phonet/af_phonet.c
+++ b/net/phonet/af_phonet.c
@@ -31,6 +31,7 @@
31#include <linux/if_phonet.h> 31#include <linux/if_phonet.h>
32#include <linux/phonet.h> 32#include <linux/phonet.h>
33#include <net/phonet/phonet.h> 33#include <net/phonet/phonet.h>
34#include <net/phonet/pn_dev.h>
34 35
35static struct net_proto_family phonet_proto_family; 36static struct net_proto_family phonet_proto_family;
36static struct phonet_protocol *phonet_proto_get(int protocol); 37static struct phonet_protocol *phonet_proto_get(int protocol);
@@ -200,6 +201,7 @@ static int __init phonet_init(void)
200 return err; 201 return err;
201 } 202 }
202 203
204 phonet_device_init();
203 dev_add_pack(&phonet_packet_type); 205 dev_add_pack(&phonet_packet_type);
204 return 0; 206 return 0;
205} 207}
@@ -208,6 +210,7 @@ static void __exit phonet_exit(void)
208{ 210{
209 sock_unregister(AF_PHONET); 211 sock_unregister(AF_PHONET);
210 dev_remove_pack(&phonet_packet_type); 212 dev_remove_pack(&phonet_packet_type);
213 phonet_device_exit();
211} 214}
212 215
213module_init(phonet_init); 216module_init(phonet_init);