* [PATCH] spi: spi-xilinx: Pass NULL to platform_set_drvdata
@ 2012-08-16 10:44 Tobias Klauser
0 siblings, 0 replies; only message in thread
From: Tobias Klauser @ 2012-08-16 10:44 UTC (permalink / raw)
To: Grant Likely, Mark Brown
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
platform_set_drvdata expects a void *, so pass NULL instead of 0.
Signed-off-by: Tobias Klauser <tklauser-93Khv+1bN0NyDzI6CaY1VQ@public.gmane.org>
---
drivers/spi/spi-xilinx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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;
}
--
1.7.5.4
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-16 10:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-16 10:44 [PATCH] spi: spi-xilinx: Pass NULL to platform_set_drvdata Tobias Klauser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).