]> Pileus Git - ~andy/linux/blobdiff - drivers/mfd/stmpe-spi.c
random32: assign to network folks in MAINTAINERS
[~andy/linux] / drivers / mfd / stmpe-spi.c
index 973659f8abd965bf689e48d7a92bd4b38f8b8c11..a81badbaa917dac49260ae1e10c7b08ec0b1a524 100644 (file)
@@ -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);
 }