diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-03-31 12:38:18 -0600 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-01 12:46:12 +0100 |
commit | 2951f93f431a2fc8956a3b13882dc07cb5b8b2b9 (patch) | |
tree | be82835fd4421714a7459457a8608251910da089 /sound | |
parent | e585ca342dbbfe7102985d9ed4eae3f9e1d77ced (diff) | |
download | linux-stable-2951f93f431a2fc8956a3b13882dc07cb5b8b2b9.tar.gz linux-stable-2951f93f431a2fc8956a3b13882dc07cb5b8b2b9.tar.bz2 linux-stable-2951f93f431a2fc8956a3b13882dc07cb5b8b2b9.zip |
ASoC: max98090: add an of_match table
Add a device tree match table. This serves to make the driver's support
of device tree more explicit. Perhaps the fallback for DT matching to
using the i2c_device_id table will go away one day, since it fails in
face of devices from different vendors with the same name.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
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 361862d4fa65..83a773c11ddb 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -2406,11 +2406,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 = of_match_ptr(max98090_of_match), }, .probe = max98090_i2c_probe, .remove = max98090_i2c_remove, |