OSDN Git Service

Merge "cnss2: Add support for genoa sdio"
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / drivers / soc / qcom / qdsp6v2 / apr_dummy.c
1 /* Copyright (c) 2019, The Linux Foundation. All rights reserved.
2  *
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License version 2 and
5  * only version 2 as published by the Free Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  *
12  */
13
14 #include <linux/kernel.h>
15 #include <linux/module.h>
16 #include <linux/platform_device.h>
17 #include <linux/of_device.h>
18 #include <linux/qdsp6v2/apr.h>
19
20 static int apr_dummy_probe(struct platform_device *pdev)
21 {
22         return 0;
23 }
24
25 static int apr_dummy_remove(struct platform_device *pdev)
26 {
27         return 0;
28 }
29
30 static const struct of_device_id apr_dummy_dt_match[] = {
31         {.compatible = "qcom,msm-audio-apr-dummy"},
32         {}
33 };
34
35 static struct platform_driver apr_dummy_driver = {
36         .driver = {
37                 .name = "apr_dummy",
38                 .owner = THIS_MODULE,
39                 .of_match_table = apr_dummy_dt_match,
40         },
41         .probe = apr_dummy_probe,
42         .remove = apr_dummy_remove,
43 };
44
45 int __init apr_dummy_init(void)
46 {
47         platform_driver_register(&apr_dummy_driver);
48         return 0;
49 }
50
51 void apr_dummy_exit(void)
52 {
53         platform_driver_unregister(&apr_dummy_driver);
54 }
55
56 MODULE_DESCRIPTION("APR dummy module driver");
57 MODULE_LICENSE("GPL v2");
58 MODULE_DEVICE_TABLE(of, apr_dummy_dt_match);