Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157648
b: refs/heads/master
c: 2a70813
h: refs/heads/master
v: v3
  • Loading branch information
Barry Song authored and Mark Brown committed Aug 14, 2009
1 parent fe0c756 commit de975d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 9028935d752ede57b086ab1bfe2420d4cba80127
refs/heads/master: 2a708137fd7d3e0928f27157aaed8aba404b11c9
4 changes: 3 additions & 1 deletion trunk/sound/soc/codecs/ad1938.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ static int __devexit ad1938_spi_remove(struct spi_device *spi)

static struct spi_driver ad1938_spi_driver = {
.driver = {
.name = "ad1938-spi",
.name = "ad1938",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
Expand Down Expand Up @@ -543,13 +543,15 @@ static int ad1938_register(struct ad1938_priv *ad1938)
ret = snd_soc_register_codec(codec);
if (ret != 0) {
dev_err(codec->dev, "Failed to register codec: %d\n", ret);
kfree(ad1938);
return ret;
}

ret = snd_soc_register_dai(&ad1938_dai);
if (ret != 0) {
dev_err(codec->dev, "Failed to register DAI: %d\n", ret);
snd_soc_unregister_codec(codec);
kfree(ad1938);
return ret;
}

Expand Down

0 comments on commit de975d3

Please sign in to comment.