Commit e9642d5e authored by Jingoo Han's avatar Jingoo Han Committed by Samuel Ortiz

mfd: arizona: Use spi_get_drvdata()

Use the wrapper functions for getting and setting the driver data using
spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we
can directly pass a struct spi_device.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent a720c305
...@@ -67,7 +67,7 @@ static int arizona_spi_probe(struct spi_device *spi) ...@@ -67,7 +67,7 @@ static int arizona_spi_probe(struct spi_device *spi)
static int arizona_spi_remove(struct spi_device *spi) static int arizona_spi_remove(struct spi_device *spi)
{ {
struct arizona *arizona = dev_get_drvdata(&spi->dev); struct arizona *arizona = spi_get_drvdata(spi);
arizona_dev_exit(arizona); arizona_dev_exit(arizona);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment