20 #include <linux/kernel.h>
21 #include <linux/module.h>
24 #define MSG "hello world!"
33 dev_info(&rpdev->
dev,
"incoming msg %d (src: 0x%x)\n", ++rx_count, src);
47 dev_err(&rpdev->
dev,
"rpmsg_send failed: %d\n", ret);
54 dev_info(&rpdev->
dev,
"new channel: 0x%x -> 0x%x!\n",
60 dev_err(&rpdev->
dev,
"rpmsg_send failed: %d\n", ret);
69 dev_info(&rpdev->
dev,
"rpmsg sample client driver is removed\n");
73 { .name =
"rpmsg-client-sample" },
79 .drv.name = KBUILD_MODNAME,
81 .id_table = rpmsg_driver_sample_id_table,
82 .probe = rpmsg_sample_probe,
83 .callback = rpmsg_sample_cb,
87 static int __init rpmsg_client_sample_init(
void)
93 static void __exit rpmsg_client_sample_fini(
void)