Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157581
b: refs/heads/master
c: 416c8fe
h: refs/heads/master
i:
  157579: bcd8c6e
v: v3
  • Loading branch information
Takashi Iwai committed Jul 17, 2009
1 parent 84f081f commit 308807d
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 1274738d85d0e25c4f82d83f50a6bcbe2397e9ea
refs/heads/master: 416c8fe3cdcd2d46a6ca12d8ec6143c62d8569d9
4 changes: 2 additions & 2 deletions trunk/sound/soc/codecs/ad1938.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,14 +420,14 @@ static int __devinit ad1938_spi_probe(struct spi_device *spi)
codec->control_data = spi;
codec->dev = &spi->dev;

spi->dev.driver_data = ad1938;
dev_set_drvdata(&spi->dev, ad1938);

return ad1938_register(ad1938);
}

static int __devexit ad1938_spi_remove(struct spi_device *spi)
{
struct ad1938_priv *ad1938 = spi->dev.driver_data;
struct ad1938_priv *ad1938 = dev_get_drvdata(&spi->dev);

ad1938_unregister(ad1938);
return 0;
Expand Down

0 comments on commit 308807d

Please sign in to comment.