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 /Documentation/rpmsg.txt | |
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 'Documentation/rpmsg.txt')
-rw-r--r-- | Documentation/rpmsg.txt | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Documentation/rpmsg.txt b/Documentation/rpmsg.txt index 1d884269e40c..a95e36a43288 100644 --- a/Documentation/rpmsg.txt +++ b/Documentation/rpmsg.txt | |||
@@ -254,18 +254,7 @@ static struct rpmsg_driver rpmsg_sample_client = { | |||
254 | .callback = rpmsg_sample_cb, | 254 | .callback = rpmsg_sample_cb, |
255 | .remove = rpmsg_sample_remove, | 255 | .remove = rpmsg_sample_remove, |
256 | }; | 256 | }; |
257 | 257 | module_rpmsg_driver(rpmsg_sample_client); | |
258 | static int __init init(void) | ||
259 | { | ||
260 | return register_rpmsg_driver(&rpmsg_sample_client); | ||
261 | } | ||
262 | module_init(init); | ||
263 | |||
264 | static void __exit fini(void) | ||
265 | { | ||
266 | unregister_rpmsg_driver(&rpmsg_sample_client); | ||
267 | } | ||
268 | module_exit(fini); | ||
269 | 258 | ||
270 | Note: a similar sample which can be built and loaded can be found | 259 | Note: a similar sample which can be built and loaded can be found |
271 | in samples/rpmsg/. | 260 | in samples/rpmsg/. |