diff options
author | Remi Denis-Courmont <remi.denis-courmont@nokia.com> | 2008-09-22 23:03:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-22 23:03:44 -0400 |
commit | f8ff60283de2b6775d7a14619056a08e3083bd40 (patch) | |
tree | aea8a14283aa5b5f7952e6e7b8e4adcc4422c592 /net/phonet/af_phonet.c | |
parent | 8ead536dec142f27d5b5f72c3994eb39f4741717 (diff) |
Phonet: network device and address handling
This provides support for adding Phonet addresses to and removing
Phonet addresses from network devices.
Signed-off-by: RĂ©mi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet/af_phonet.c')
-rw-r--r-- | net/phonet/af_phonet.c | 3 |
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 | ||
35 | static struct net_proto_family phonet_proto_family; | 36 | static struct net_proto_family phonet_proto_family; |
36 | static struct phonet_protocol *phonet_proto_get(int protocol); | 37 | static 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 | ||
213 | module_init(phonet_init); | 216 | module_init(phonet_init); |