diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-05-11 21:57:08 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-05-11 23:09:22 +0200 |
commit | 31cb31f76e030ae05ed45f409ce5eb68ef2987f6 (patch) | |
tree | a00424c0a9a1f7f00705dda1b6419a4a61554f72 /sound/soc/codecs/wm8753.c | |
parent | ASoC: Fix up CODEC DAI formats for big endian CPUs (diff) | |
download | linux-31cb31f76e030ae05ed45f409ce5eb68ef2987f6.tar.xz linux-31cb31f76e030ae05ed45f409ce5eb68ef2987f6.zip |
ASoC: remove driver_data direct access of struct device
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to '')
-rw-r--r-- | sound/soc/codecs/wm8753.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c index a6e8f3f7f052..d121e58cae2b 100644 --- a/sound/soc/codecs/wm8753.c +++ b/sound/soc/codecs/wm8753.c @@ -1822,14 +1822,14 @@ static int __devinit wm8753_spi_probe(struct spi_device *spi) codec->hw_write = (hw_write_t)wm8753_spi_write; codec->dev = &spi->dev; - spi->dev.driver_data = wm8753; + dev_set_drvdata(&spi->dev, wm8753); return wm8753_register(wm8753); } static int __devexit wm8753_spi_remove(struct spi_device *spi) { - struct wm8753_priv *wm8753 = spi->dev.driver_data; + struct wm8753_priv *wm8753 = dev_get_drvdata(&spi->dev); wm8753_unregister(wm8753); return 0; } |