diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-07-17 01:48:03 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-07-17 01:48:03 -0400 |
commit | 416c8fe3cdcd2d46a6ca12d8ec6143c62d8569d9 (patch) | |
tree | 39ee710fd1bcfc56436dc94f861ee6c099cd62b7 /sound | |
parent | 1274738d85d0e25c4f82d83f50a6bcbe2397e9ea (diff) |
ASoC: Kill direct accesses to driver_data
Replaced with dev_{get|set}_drvdata().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/ad1938.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/ad1938.c b/sound/soc/codecs/ad1938.c index 3dc80910318a..5a7d00cad69a 100644 --- a/sound/soc/codecs/ad1938.c +++ b/sound/soc/codecs/ad1938.c | |||
@@ -420,14 +420,14 @@ static int __devinit ad1938_spi_probe(struct spi_device *spi) | |||
420 | codec->control_data = spi; | 420 | codec->control_data = spi; |
421 | codec->dev = &spi->dev; | 421 | codec->dev = &spi->dev; |
422 | 422 | ||
423 | spi->dev.driver_data = ad1938; | 423 | dev_set_drvdata(&spi->dev, ad1938); |
424 | 424 | ||
425 | return ad1938_register(ad1938); | 425 | return ad1938_register(ad1938); |
426 | } | 426 | } |
427 | 427 | ||
428 | static int __devexit ad1938_spi_remove(struct spi_device *spi) | 428 | static int __devexit ad1938_spi_remove(struct spi_device *spi) |
429 | { | 429 | { |
430 | struct ad1938_priv *ad1938 = spi->dev.driver_data; | 430 | struct ad1938_priv *ad1938 = dev_get_drvdata(&spi->dev); |
431 | 431 | ||
432 | ad1938_unregister(ad1938); | 432 | ad1938_unregister(ad1938); |
433 | return 0; | 433 | return 0; |