From: Takashi Iwai Date: Fri, 17 Jul 2009 05:48:03 +0000 (+0200) Subject: ASoC: Kill direct accesses to driver_data X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=416c8fe3cdcd2d46a6ca12d8ec6143c62d8569d9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: Kill direct accesses to driver_data Replaced with dev_{get|set}_drvdata(). Signed-off-by: Takashi Iwai --- 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) 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;