dmic.c (0cce284537fb42d9c28b9b31038ffc9b464555f5) dmic.c (29685e207b37ad7f415e4bf21320076c025f3df1)
1/*
2 * dmic.c -- SoC audio for Generic Digital MICs
3 *
4 * Author: Liam Girdwood <lrg@slimlogic.co.uk>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 as published by the Free Software Foundation.

--- 59 unchanged lines hidden (view full) ---

68static int dmic_dev_remove(struct platform_device *pdev)
69{
70 snd_soc_unregister_codec(&pdev->dev);
71 return 0;
72}
73
74MODULE_ALIAS("platform:dmic-codec");
75
1/*
2 * dmic.c -- SoC audio for Generic Digital MICs
3 *
4 * Author: Liam Girdwood <lrg@slimlogic.co.uk>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 as published by the Free Software Foundation.

--- 59 unchanged lines hidden (view full) ---

68static int dmic_dev_remove(struct platform_device *pdev)
69{
70 snd_soc_unregister_codec(&pdev->dev);
71 return 0;
72}
73
74MODULE_ALIAS("platform:dmic-codec");
75
76static const struct of_device_id dmic_dev_match[] = {
77 {.compatible = "dmic-codec"},
78 {}
79};
80
76static struct platform_driver dmic_driver = {
77 .driver = {
78 .name = "dmic-codec",
81static struct platform_driver dmic_driver = {
82 .driver = {
83 .name = "dmic-codec",
84 .of_match_table = dmic_dev_match,
79 },
80 .probe = dmic_dev_probe,
81 .remove = dmic_dev_remove,
82};
83
84module_platform_driver(dmic_driver);
85
86MODULE_DESCRIPTION("Generic DMIC driver");
87MODULE_AUTHOR("Liam Girdwood <lrg@slimlogic.co.uk>");
88MODULE_LICENSE("GPL");
85 },
86 .probe = dmic_dev_probe,
87 .remove = dmic_dev_remove,
88};
89
90module_platform_driver(dmic_driver);
91
92MODULE_DESCRIPTION("Generic DMIC driver");
93MODULE_AUTHOR("Liam Girdwood <lrg@slimlogic.co.uk>");
94MODULE_LICENSE("GPL");