From: Fabio Estevam Date: Mon, 26 May 2014 13:34:20 +0000 (-0300) Subject: ASoC: sgtl5000: Fix the cache handling X-Git-Tag: omap-for-v3.16/fixes-against-rc1~21^2~24^2~3^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29aa37cddfb9b721013ff28608200d73a9426368;p=pandora-kernel.git ASoC: sgtl5000: Fix the cache handling Since commit e5d80e82e32e (ASoC: sgtl5000: Convert to use regmap directly) a kernel oops is observed after a suspend/resume sequence. The kernel oops happens inside sgtl5000_restore_regs() as codec->reg_cache is no longer a valid pointer. Add the remaining register entries into sgtl5000_reg_defaults[] and remove sgtl5000_restore_regs() completely, which allows suspend/resume to work fine and make the code simpler. Tested on a im53-qsb board. Reported-by: Shawn Guo Signed-off-by: Fabio Estevam Tested-by: Shawn Guo Signed-off-by: Mark Brown --- Reading git-diff-tree failed