From: Jingoo Han Date: Sat, 6 Apr 2013 06:44:30 +0000 (+0900) Subject: mfd: arizona: Use spi_get_drvdata() X-Git-Tag: v3.10-rc1~86^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9642d5e162c2a219f770cf4a52b4c6b622879bb;p=platform%2Fkernel%2Flinux-3.10.git 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: Jingoo Han Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/arizona-spi.c b/drivers/mfd/arizona-spi.c index 1b9fdd6..b57e642 100644 --- a/drivers/mfd/arizona-spi.c +++ b/drivers/mfd/arizona-spi.c @@ -67,7 +67,7 @@ static int arizona_spi_probe(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); return 0; }