summaryrefslogtreecommitdiffstats
path: root/net/phonet/af_phonet.c
diff options
context:
space:
mode:
authorRemi Denis-Courmont <remi.denis-courmont@nokia.com>2008-09-22 20:03:44 -0700
committerDavid S. Miller <davem@davemloft.net>2008-09-22 20:03:44 -0700
commitf8ff60283de2b6775d7a14619056a08e3083bd40 (patch)
treeaea8a14283aa5b5f7952e6e7b8e4adcc4422c592 /net/phonet/af_phonet.c
parent8ead536dec142f27d5b5f72c3994eb39f4741717 (diff)
downloadlinux-f8ff60283de2b6775d7a14619056a08e3083bd40.tar.bz2
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.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 @@
#include <linux/if_phonet.h>
#include <linux/phonet.h>
#include <net/phonet/phonet.h>
+#include <net/phonet/pn_dev.h>
static struct net_proto_family phonet_proto_family;
static struct phonet_protocol *phonet_proto_get(int protocol);
@@ -200,6 +201,7 @@ static int __init phonet_init(void)
return err;
}
+ phonet_device_init();
dev_add_pack(&phonet_packet_type);
return 0;
}
@@ -208,6 +210,7 @@ static void __exit phonet_exit(void)
{
sock_unregister(AF_PHONET);
dev_remove_pack(&phonet_packet_type);
+ phonet_device_exit();
}
module_init(phonet_init);