Replaced with dev_{get|set}_drvdata().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
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;