diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-06-25 16:44:13 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-07 15:35:13 +0300 |
commit | 5e4cb7b60833b0124a9f71dbc5118144ca79c3c4 (patch) | |
tree | bc814d4d1a2c5b0c848e205e48ec6be35058815d /sound/soc/codecs/cs42xx8-i2c.c | |
parent | d375d0abcd625cd09cd90a252ad22a1085452e3c (diff) | |
download | linux-5e4cb7b60833b0124a9f71dbc5118144ca79c3c4.tar.xz |
ASoC: cs42xx8: Setup of_match_table
Setup of_match_table and since cs42xx8_of_match is exported and used in
cs42xx8-i2c.c, it cannot be static.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs42xx8-i2c.c')
-rw-r--r-- | sound/soc/codecs/cs42xx8-i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs42xx8-i2c.c b/sound/soc/codecs/cs42xx8-i2c.c index 657dce27eade..5a71c9e5b441 100644 --- a/sound/soc/codecs/cs42xx8-i2c.c +++ b/sound/soc/codecs/cs42xx8-i2c.c @@ -20,7 +20,7 @@ static int cs42xx8_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) { - u32 ret = cs42xx8_probe(&i2c->dev, + int ret = cs42xx8_probe(&i2c->dev, devm_regmap_init_i2c(i2c, &cs42xx8_regmap_config)); if (ret) return ret; @@ -51,6 +51,7 @@ static struct i2c_driver cs42xx8_i2c_driver = { .name = "cs42xx8", .owner = THIS_MODULE, .pm = &cs42xx8_pm, + .of_match_table = cs42xx8_of_match, }, .probe = cs42xx8_i2c_probe, .remove = cs42xx8_i2c_remove, |