From b4f78259d593858feb85e02c195cf374f932feef Mon Sep 17 00:00:00 2001 From: "Andrew F. Davis" Date: Wed, 4 May 2016 17:01:39 -0500 Subject: 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 Signed-off-by: Bjorn Andersson --- Documentation/rpmsg.txt | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'Documentation/rpmsg.txt') 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 = { .callback = rpmsg_sample_cb, .remove = rpmsg_sample_remove, }; - -static int __init init(void) -{ - return register_rpmsg_driver(&rpmsg_sample_client); -} -module_init(init); - -static void __exit fini(void) -{ - unregister_rpmsg_driver(&rpmsg_sample_client); -} -module_exit(fini); +module_rpmsg_driver(rpmsg_sample_client); Note: a similar sample which can be built and loaded can be found in samples/rpmsg/. -- cgit