diff options
author | ChenZhen <zhen1.chen@samsung.com> | 2014-03-25 15:52:50 +0800 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:47:23 +0900 |
commit | 76cc076cb07233d984573623af2f0a62af35c869 (patch) | |
tree | 7d6fc12b6c41166b926c1896f0c749eada4b3249 /sound | |
parent | 2bffd2c486ae72c693cdc649d49cb13d2e79d189 (diff) | |
download | linux-3.10-76cc076cb07233d984573623af2f0a62af35c869.tar.gz linux-3.10-76cc076cb07233d984573623af2f0a62af35c869.tar.bz2 linux-3.10-76cc076cb07233d984573623af2f0a62af35c869.zip |
ASoC: max98090: Add of_match_table
It's necessary to add of_match_table to match driver.
Change-Id: I7c09aef9a3f54180041398009b9141142de54ea4
Signed-off-by: ChenZhen <zhen1.chen@samsung.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/max98090.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index 76bfeb3c3e3..34c60bcd413 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -2371,11 +2371,18 @@ static const struct i2c_device_id max98090_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, max98090_i2c_id); +static const struct of_device_id max98090_of_match[] = { + { .compatible = "maxim,max98090", }, + { }, +}; +MODULE_DEVICE_TABLE(of, max98090_of_match); + static struct i2c_driver max98090_i2c_driver = { .driver = { .name = "max98090", .owner = THIS_MODULE, .pm = &max98090_pm, + .of_match_table = max98090_of_match, }, .probe = max98090_i2c_probe, .remove = max98090_i2c_remove, |