summaryrefslogtreecommitdiffstats
path: root/drivers/rpmsg/rpmsg_char.c
diff options
context:
space:
mode:
authorRamon Fried <rfried@codeaurora.org>2018-03-23 05:09:12 +0100
committerBjorn Andersson <bjorn.andersson@linaro.org>2018-04-26 01:46:55 +0200
commit93dd4e73c0d9cc32f835d76a54257020b0bfc75a (patch)
tree0718934d38e510d3ece64e1911b3e8d2c2acb806 /drivers/rpmsg/rpmsg_char.c
parentremoteproc: qcom: Fix potential device node leaks (diff)
downloadlinux-93dd4e73c0d9cc32f835d76a54257020b0bfc75a.tar.xz
linux-93dd4e73c0d9cc32f835d76a54257020b0bfc75a.zip
rpmsg: added MODULE_ALIAS for rpmsg_char
Added "rpmsg:rpmsg_chrdev" MODULE_ALIAS to autoload rpmg_chrdev module automatically. Signed-off-by: Ramon Fried <rfried@codeaurora.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/rpmsg/rpmsg_char.c')
-rw-r--r--drivers/rpmsg/rpmsg_char.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c
index 64b6de9763ee..1efdf9ff8679 100644
--- a/drivers/rpmsg/rpmsg_char.c
+++ b/drivers/rpmsg/rpmsg_char.c
@@ -581,4 +581,6 @@ static void rpmsg_chrdev_exit(void)
unregister_chrdev_region(rpmsg_major, RPMSG_DEV_MAX);
}
module_exit(rpmsg_chrdev_exit);
+
+MODULE_ALIAS("rpmsg:rpmsg_chrdev");
MODULE_LICENSE("GPL v2");