spi: spi-xilinx: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 31 May 2013 11:47:49 +0000 (17:17 +0530)
committerMark Brown <broonie@linaro.org>
Tue, 4 Jun 2013 17:38:32 +0000 (18:38 +0100)
Setting platform data to NULL is not necessary.
Also fixes the following sparse warning:
drivers/spi/spi-xilinx.c:508:35: warning: Using plain integer as NULL pointer

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-xilinx.c

index bb6ae4ee7deabac7775a7d819bc114078fe367df..b07b004cea13a024f4fdeb77206c9a809aae5d7c 100644 (file)
@@ -534,7 +534,6 @@ static int xilinx_spi_probe(struct platform_device *dev)
 static int xilinx_spi_remove(struct platform_device *dev)
 {
        xilinx_spi_deinit(platform_get_drvdata(dev));
-       platform_set_drvdata(dev, 0);
 
        return 0;
 }