From: Jingoo Han Date: Sat, 6 Apr 2013 06:44:51 +0000 (+0900) Subject: mfd: stmpe: Use spi_get_drvdata() X-Git-Tag: next-20130422~55^2~19 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e65ad41e3b3f28316565ad0061b8152a3a8227ba;p=karo-tx-linux.git mfd: stmpe: 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/stmpe-spi.c b/drivers/mfd/stmpe-spi.c index 973659f8abd9..a81badbaa917 100644 --- a/drivers/mfd/stmpe-spi.c +++ b/drivers/mfd/stmpe-spi.c @@ -103,7 +103,7 @@ stmpe_spi_probe(struct spi_device *spi) static int stmpe_spi_remove(struct spi_device *spi) { - struct stmpe *stmpe = dev_get_drvdata(&spi->dev); + struct stmpe *stmpe = spi_get_drvdata(spi); return stmpe_remove(stmpe); }