diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-04-30 05:06:29 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-30 21:23:49 -0400 |
commit | a8784dd0f46fed4a1f505f871adeefe9bf9fed7f (patch) | |
tree | 76be7e75194eef8fa6c8dbe521cab0388a642803 | |
parent | 7a34b1c1dff720dd8dcf63e2b0e5fc15a8f7208f (diff) |
ASoC: cq93vc: fix cq93vc_get_regmap build error
49101a25acd69c "ASoC: cq93vc: Remove the set_cache_io() entirely from
ASoC probe" introduced the cq93vc_get_regmap function that has an
obvious build error referring to the 'codec' variable that is not
declared anywhere"
sound/soc/codecs/cq93vc.c: In function 'cq93vc_get_regmap':
sound/soc/codecs/cq93vc.c:157:34: error: 'codec' undeclared (first use in this function)
struct davinci_vc *davinci_vc = codec->dev->platform_data;
^
This changes the code to compile again, presumably in the way it was
intended. Not tested.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/codecs/cq93vc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cq93vc.c b/sound/soc/codecs/cq93vc.c index 5ee48c8e4849..537327c7f7f1 100644 --- a/sound/soc/codecs/cq93vc.c +++ b/sound/soc/codecs/cq93vc.c | |||
@@ -154,7 +154,7 @@ static int cq93vc_remove(struct snd_soc_codec *codec) | |||
154 | 154 | ||
155 | static struct regmap *cq93vc_get_regmap(struct device *dev) | 155 | static struct regmap *cq93vc_get_regmap(struct device *dev) |
156 | { | 156 | { |
157 | struct davinci_vc *davinci_vc = codec->dev->platform_data; | 157 | struct davinci_vc *davinci_vc = dev->platform_data; |
158 | 158 | ||
159 | return davinci_vc->regmap; | 159 | return davinci_vc->regmap; |
160 | } | 160 | } |