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 <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
This commit is contained in:
Andrew F. Davis 2016-05-04 17:01:39 -05:00 • committed by Bjorn Andersson
commit b4f78259d5
2 changed files with 2 additions and 24 deletions

View file

@ -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/.