blob: 288ba82ae744428bc0de878d82232dbf55f2d9b8 [file] [log] [blame]
Laxminath Kasam31b26c52018-02-12 16:32:01 +05301/* Copyright (c) 2018, 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
19static int apr_dummy_probe(struct platform_device *pdev)
20{
21 dev_dbg(&pdev->dev, "%s\n", __func__);
22 return 0;
23}
24
25static int apr_dummy_remove(struct platform_device *pdev)
26{
27 return 0;
28}
29
30static const struct of_device_id apr_dummy_dt_match[] = {
31 {.compatible = "qcom,msm-audio-apr-dummy"},
32 {}
33};
34
35static 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
45int __init apr_dummy_init(void)
46{
47 platform_driver_register(&apr_dummy_driver);
48 return 0;
49}
50
51void apr_dummy_exit(void)
52{
53 platform_driver_unregister(&apr_dummy_driver);
54}
55
56MODULE_DESCRIPTION("APR dummy module driver");
57MODULE_LICENSE("GPL v2");