summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-05-18 20:17:20 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-18 20:17:20 -0400
commit676d9735cd010fc439566e2b6e9b6adc3e1179ef (patch)
tree069b84dda1a4cfa92a9d2e4b2b20ca507f589f49 /samples
parent888dae5361e605efc553b645a7c95bbcc5e904db (diff)
parentb4f78259d593858feb85e02c195cf374f932feef (diff)
Merge tag 'rpmsg-v4.7' of git://github.com/andersson/remoteproc
Pull rpmsg updates from Bjorn Andersson: "Refactor rpmsg module registration to follow other subsystems; by introduction of module_rpmsg_driver and hiding of THIS_MODULE from clients" * tag 'rpmsg-v4.7' of git://github.com/andersson/remoteproc: rpmsg: use module_rpmsg_driver in existing drivers and examples rpmsg: add helper macro module_rpmsg_driver rpmsg: drop owner assignment from rpmsg_drivers rpmsg: add THIS_MODULE to rpmsg_driver in rpmsg core
Diffstat (limited to 'samples')
-rw-r--r--samples/rpmsg/rpmsg_client_sample.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/samples/rpmsg/rpmsg_client_sample.c b/samples/rpmsg/rpmsg_client_sample.c
index 59b13440813d..d0e249c90668 100644
--- a/samples/rpmsg/rpmsg_client_sample.c
+++ b/samples/rpmsg/rpmsg_client_sample.c
@@ -77,24 +77,12 @@ MODULE_DEVICE_TABLE(rpmsg, rpmsg_driver_sample_id_table);
77 77
78static struct rpmsg_driver rpmsg_sample_client = { 78static struct rpmsg_driver rpmsg_sample_client = {
79 .drv.name = KBUILD_MODNAME, 79 .drv.name = KBUILD_MODNAME,
80 .drv.owner = THIS_MODULE,
81 .id_table = rpmsg_driver_sample_id_table, 80 .id_table = rpmsg_driver_sample_id_table,
82 .probe = rpmsg_sample_probe, 81 .probe = rpmsg_sample_probe,
83 .callback = rpmsg_sample_cb, 82 .callback = rpmsg_sample_cb,
84 .remove = rpmsg_sample_remove, 83 .remove = rpmsg_sample_remove,
85}; 84};
86 85module_rpmsg_driver(rpmsg_sample_client);
87static int __init rpmsg_client_sample_init(void)
88{
89 return register_rpmsg_driver(&rpmsg_sample_client);
90}
91module_init(rpmsg_client_sample_init);
92
93static void __exit rpmsg_client_sample_fini(void)
94{
95 unregister_rpmsg_driver(&rpmsg_sample_client);
96}
97module_exit(rpmsg_client_sample_fini);
98 86
99MODULE_DESCRIPTION("Remote processor messaging sample client driver"); 87MODULE_DESCRIPTION("Remote processor messaging sample client driver");
100MODULE_LICENSE("GPL v2"); 88MODULE_LICENSE("GPL v2");