Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56165
b: refs/heads/master
c: 30652c4
h: refs/heads/master
i:
  56163: 4ce91e4
v: v3
  • Loading branch information
Graeme Gregory authored and Jaroslav Kysela committed May 11, 2007
1 parent 0101fe0 commit 3320ca7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 826220463f619d14c5efea51aac6277b441052b8
refs/heads/master: 30652c4506c8bbfdf869ddc4c238e07de038f02a
7 changes: 3 additions & 4 deletions trunk/sound/soc/codecs/wm9712.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,14 +676,13 @@ static int wm9712_soc_probe(struct platform_device *pdev)
codec = socdev->codec;
mutex_init(&codec->mutex);

codec->reg_cache =
kzalloc(sizeof(u16) * ARRAY_SIZE(wm9712_reg), GFP_KERNEL);
codec->reg_cache = kmemdup(wm9712_reg, sizeof(wm9712_reg), GFP_KERNEL);

if (codec->reg_cache == NULL) {
ret = -ENOMEM;
goto cache_err;
}
memcpy(codec->reg_cache, wm9712_reg, sizeof(u16) * ARRAY_SIZE(wm9712_reg));
codec->reg_cache_size = sizeof(u16) * ARRAY_SIZE(wm9712_reg);
codec->reg_cache_size = sizeof(wm9712_reg);
codec->reg_cache_step = 2;

codec->name = "WM9712";
Expand Down

0 comments on commit 3320ca7

Please sign in to comment.