Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270541
b: refs/heads/master
c: 0bb98ba
h: refs/heads/master
i:
  270539: 194aa90
v: v3
  • Loading branch information
Julia Lawall authored and Mark Brown committed Aug 22, 2011
1 parent 48885c4 commit 08a0b90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: bbe8ff5e25afd4d06c8a8bad009aca5f0d0c22ef
refs/heads/master: 0bb98ba2b045e53b4724f34509455b7653c329d3
5 changes: 3 additions & 2 deletions trunk/sound/soc/mxs/mxs-saif.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,12 +521,13 @@ static int mxs_saif_probe(struct platform_device *pdev)
struct mxs_saif *saif;
int ret = 0;

if (pdev->id >= ARRAY_SIZE(mxs_saif))
return -EINVAL;

saif = kzalloc(sizeof(*saif), GFP_KERNEL);
if (!saif)
return -ENOMEM;

if (pdev->id >= ARRAY_SIZE(mxs_saif))
return -EINVAL;
mxs_saif[pdev->id] = saif;

saif->clk = clk_get(&pdev->dev, NULL);
Expand Down

0 comments on commit 08a0b90

Please sign in to comment.