diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2012-12-12 23:28:04 -0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-12-24 15:36:57 +0000 |
commit | 5ce568329e4fcf9e9050bff878f8157ca43bc882 (patch) | |
tree | ba67bc2c95ce80b84e9a31985ea34c876c588e25 /sound/soc | |
parent | a49f0d1ea3ec94fc7cf33a7c36a16343b74bd565 (diff) | |
download | linux-stable-5ce568329e4fcf9e9050bff878f8157ca43bc882.tar.gz linux-stable-5ce568329e4fcf9e9050bff878f8157ca43bc882.tar.bz2 linux-stable-5ce568329e4fcf9e9050bff878f8157ca43bc882.zip |
ASoC: wm8962: Add device tree support
Add device tree support.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm8962.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index bd4b0db4cdaa..705d0a0e9137 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -3758,10 +3758,17 @@ static const struct i2c_device_id wm8962_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, wm8962_i2c_id); +static const struct of_device_id wm8962_of_match[] = { + { .compatible = "wlf,wm8962", }, + { } +}; +MODULE_DEVICE_TABLE(of, wm8962_of_match); + static struct i2c_driver wm8962_i2c_driver = { .driver = { .name = "wm8962", .owner = THIS_MODULE, + .of_match_table = wm8962_of_match, .pm = &wm8962_pm, }, .probe = wm8962_i2c_probe, |