Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284053
b: refs/heads/master
c: a816302
h: refs/heads/master
i:
  284051: d2256d2
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Jan 2, 2012
1 parent 9bdbbfc commit 2144b7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: 099830608a04a7194d00228084bb08130f761084
refs/heads/master: a8163023d29c1439a2447f5203694bef3ed1c61c
8 changes: 1 addition & 7 deletions trunk/sound/soc/codecs/tlv320aic26.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ static int aic26_spi_probe(struct spi_device *spi)
dev_dbg(&spi->dev, "probing tlv320aic26 spi device\n");

/* Allocate driver data */
aic26 = kzalloc(sizeof *aic26, GFP_KERNEL);
aic26 = devm_kzalloc(&spi->dev, sizeof *aic26, GFP_KERNEL);
if (!aic26)
return -ENOMEM;

Expand All @@ -427,18 +427,12 @@ static int aic26_spi_probe(struct spi_device *spi)

ret = snd_soc_register_codec(&spi->dev,
&aic26_soc_codec_dev, &aic26_dai, 1);
if (ret < 0)
kfree(aic26);
return ret;

dev_dbg(&spi->dev, "SPI device initialized\n");
return 0;
}

static int aic26_spi_remove(struct spi_device *spi)
{
snd_soc_unregister_codec(&spi->dev);
kfree(spi_get_drvdata(spi));
return 0;
}

Expand Down

0 comments on commit 2144b7d

Please sign in to comment.