summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChenZhen <zhen1.chen@samsung.com>2014-03-25 15:52:50 +0800
committerChenZhen <zhen1.chen@samsung.com>2014-03-26 11:36:57 +0800
commit4bd38a0bea6359db34876a7c2db0454717b4f0bb (patch)
tree6c25431314911d18783149d9f52eac20abc7bcc3
parentc0e5cff58ccb3e117125234bfe9cb95ab3798df7 (diff)
downloadlinux-3.10-4bd38a0bea6359db34876a7c2db0454717b4f0bb.tar.gz
linux-3.10-4bd38a0bea6359db34876a7c2db0454717b4f0bb.tar.bz2
linux-3.10-4bd38a0bea6359db34876a7c2db0454717b4f0bb.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>
-rw-r--r--sound/soc/codecs/max98090.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index 819c90fe021..4d4c549956d 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -2367,11 +2367,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,