From: Takashi Iwai Date: Thu, 4 Jun 2009 07:58:18 +0000 (+0200) Subject: ASoC: Fix build error in twl4030.c X-Git-Tag: upstream/snapshot3+hdmi~18110^2~15^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d08664fdb50795b29cf70b0269ea02f7248e76c3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ASoC: Fix build error in twl4030.c Fix the (likely cut-n-paste) error by commit 16a30fbb0d3aa4ee829a2dd3d0e314e2b5ae96a9, which causes the error below: sound/soc/codecs/twl4030.c: In function 'twl4030_read_reg_cache': sound/soc/codecs/twl4030.c:152: error: 'cache' undeclared (first use in this function) Signed-off-by: Takashi Iwai --- diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index c53c7ca..4dbb853 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c @@ -145,6 +145,7 @@ struct twl4030_priv { static inline unsigned int twl4030_read_reg_cache(struct snd_soc_codec *codec, unsigned int reg) { + u8 *cache = codec->reg_cache; if (reg >= TWL4030_CACHEREGNUM) return -EIO;