net: rmnet: add missing module alias
authorTaehee Yoo <ap420073@gmail.com>
Wed, 4 Mar 2020 23:24:42 +0000 (23:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Mar 2020 19:47:10 +0000 (11:47 -0800)
In the current rmnet code, there is no module alias.
So, RTNL couldn't load rmnet module automatically.

Test commands:
    ip link add dummy0 type dummy
    modprobe -rv rmnet
    ip link add rmnet0 link dummy0 type rmnet  mux_id 1

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c

index fbf4cbc..d846a0c 100644 (file)
@@ -475,4 +475,5 @@ static void __exit rmnet_exit(void)
 
 module_init(rmnet_init)
 module_exit(rmnet_exit)
+MODULE_ALIAS_RTNL_LINK("rmnet");
 MODULE_LICENSE("GPL v2");