diff mbox

spi: spi-xilinx: Pass NULL to platform_set_drvdata

Message ID 1345113885-9682-1-git-send-email-tklauser@distanz.ch (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Tobias Klauser Aug. 16, 2012, 10:44 a.m. UTC
platform_set_drvdata expects a void *, so pass NULL instead of 0.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 drivers/spi/spi-xilinx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c
index 4c5a663..2501700 100644
--- a/drivers/spi/spi-xilinx.c
+++ b/drivers/spi/spi-xilinx.c
@@ -521,7 +521,7 @@  static int __devinit xilinx_spi_probe(struct platform_device *dev)
 static int __devexit xilinx_spi_remove(struct platform_device *dev)
 {
 	xilinx_spi_deinit(platform_get_drvdata(dev));
-	platform_set_drvdata(dev, 0);
+	platform_set_drvdata(dev, NULL);
 
 	return 0;
 }