[PATCH] ASoC: Use driverdata accessors in ad1938

From: Mark Brown
Date: Fri Jul 17 2009 - 05:18:14 EST


Signed-off-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
---
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 3dc8091..5a7d00c 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)
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;
--
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/