From 12d7e5cdd151492ee069fe84d41411dfc59715d3 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 4 Jun 2009 09:58:18 +0200 Subject: [PATCH] ASoC: Fix build error in twl4030.c Fix the (likely cut-n-paste) error by commit b42f6a35859f86d02398c272ea89a12dabdfb72c, 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 --- sound/soc/codecs/twl4030.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index c53c7cabbd273..4dbb853eef5ad 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; -- 2.39.5