Subject: [PATCH] connector: add module alias

From: Stephen Hemminger <[email-masked]>
Date: Thu, 9 Dec 2010 09:36:46 -0800

Since connector can be built as a module and uses netlink socket
to communicate. The module should have an alias to autoload when socket
of NETLINK_CONNECTOR type is requested.

Signed-off-by: Stephen Hemminger <[email-masked]>

--- a/drivers/connector/connector.c	2010-12-09 09:19:05.549120343 -0800
+++ b/drivers/connector/connector.c	2010-12-09 09:19:52.795051458 -0800
@@ -36,6 +36,7 @@
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Evgeniy Polyakov <[email-masked]>");
 MODULE_DESCRIPTION("Generic userspace <-> kernelspace connector.");
+MODULE_ALIAS_NET_PF_PROTO(PF_NETLINK, NETLINK_CONNECTOR);
 
 static struct cn_dev cdev;