Skip to content

Commit 7be180c

Browse files
charleskeepaxLee Jones
authored andcommitted
Revert "mfd: wm5102: Manually apply register patch"
This reverts commit d9d0349. It seems this commit was applied twice, once through ASoC and once through MFD: commit 4c9bb8b mfd: wm5102: Manually apply register patch commit d9d0349 mfd: wm5102: Manually apply register patch This has lead to a small piece of duplicate code. It is harmless hence how it has gone unoticed for so long. This patch reverts one of the two commits removing the unneeded code. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent f0933a6 commit 7be180c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

drivers/mfd/arizona-core.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -393,18 +393,6 @@ static int arizona_runtime_resume(struct device *dev)
393393
break;
394394
}
395395

396-
switch (arizona->type) {
397-
case WM5102:
398-
ret = wm5102_patch(arizona);
399-
if (ret != 0) {
400-
dev_err(arizona->dev, "Failed to apply patch: %d\n",
401-
ret);
402-
goto err;
403-
}
404-
default:
405-
break;
406-
}
407-
408396
ret = regcache_sync(arizona->regmap);
409397
if (ret != 0) {
410398
dev_err(arizona->dev, "Failed to restore register cache\n");

0 commit comments

Comments
 (0)