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