aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/arizona-core.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2013-03-26 14:01:49 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-08 09:21:00 -0400
commit4c9bb8bc352a14c9613c77bc3f1e9038cd086b9b (patch)
tree233f69491c5dc01a481cb574835321fa9e5dff71 /drivers/mfd/arizona-core.c
parentc6d6bfb186add845d3f9a7f5809bc5b302579308 (diff)
mfd: wm5102: Manually apply register patch
Future updates will require us to manually apply the register patch for wm5102. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/arizona-core.c')
-rw-r--r--drivers/mfd/arizona-core.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c
index f12057145990..b71bf7ba4cfa 100644
--- a/drivers/mfd/arizona-core.c
+++ b/drivers/mfd/arizona-core.c
@@ -255,6 +255,16 @@ static int arizona_runtime_resume(struct device *dev)
255 goto err; 255 goto err;
256 } 256 }
257 257
258 switch (arizona->type) {
259 case WM5102:
260 ret = wm5102_patch(arizona);
261 if (ret != 0) {
262 dev_err(arizona->dev, "Failed to apply patch: %d\n",
263 ret);
264 goto err;
265 }
266 }
267
258 ret = regcache_sync(arizona->regmap); 268 ret = regcache_sync(arizona->regmap);
259 if (ret != 0) { 269 if (ret != 0) {
260 dev_err(arizona->dev, "Failed to restore register cache\n"); 270 dev_err(arizona->dev, "Failed to restore register cache\n");