diff options
author | Andrew F. Davis <afd@ti.com> | 2016-05-04 18:01:39 -0400 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-05-06 14:09:01 -0400 |
commit | b4f78259d593858feb85e02c195cf374f932feef (patch) | |
tree | 4141d6daac29a6a6c587b9591ee3d0521ceb87dc /samples | |
parent | f3d9f1ce079370d19b34fc9927b8b1355ac98503 (diff) |
rpmsg: use module_rpmsg_driver in existing drivers and examples
Existing drivers and examples are updated to use the
module_rpmsg_driver helper macro.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/rpmsg/rpmsg_client_sample.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/samples/rpmsg/rpmsg_client_sample.c b/samples/rpmsg/rpmsg_client_sample.c index 82ed288dcf07..d0e249c90668 100644 --- a/samples/rpmsg/rpmsg_client_sample.c +++ b/samples/rpmsg/rpmsg_client_sample.c | |||
@@ -82,18 +82,7 @@ static struct rpmsg_driver rpmsg_sample_client = { | |||
82 | .callback = rpmsg_sample_cb, | 82 | .callback = rpmsg_sample_cb, |
83 | .remove = rpmsg_sample_remove, | 83 | .remove = rpmsg_sample_remove, |
84 | }; | 84 | }; |
85 | 85 | module_rpmsg_driver(rpmsg_sample_client); | |
86 | static int __init rpmsg_client_sample_init(void) | ||
87 | { | ||
88 | return register_rpmsg_driver(&rpmsg_sample_client); | ||
89 | } | ||
90 | module_init(rpmsg_client_sample_init); | ||
91 | |||
92 | static void __exit rpmsg_client_sample_fini(void) | ||
93 | { | ||
94 | unregister_rpmsg_driver(&rpmsg_sample_client); | ||
95 | } | ||
96 | module_exit(rpmsg_client_sample_fini); | ||
97 | 86 | ||
98 | MODULE_DESCRIPTION("Remote processor messaging sample client driver"); | 87 | MODULE_DESCRIPTION("Remote processor messaging sample client driver"); |
99 | MODULE_LICENSE("GPL v2"); | 88 | MODULE_LICENSE("GPL v2"); |