diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-31 17:17:49 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-04 18:38:32 +0100 |
commit | 913b19660e166e718d419cccd753c3990881f17c (patch) | |
tree | e2e5f64e2e6022af4e61c9c601499599a298d42e /drivers/spi/spi-xilinx.c | |
parent | 082339bc63cccf8ea49b1f3cf4ee39ce00742849 (diff) | |
download | blackbird-op-linux-913b19660e166e718d419cccd753c3990881f17c.tar.gz blackbird-op-linux-913b19660e166e718d419cccd753c3990881f17c.zip |
spi: spi-xilinx: Remove redundant platform_set_drvdata()
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>
Diffstat (limited to 'drivers/spi/spi-xilinx.c')
-rw-r--r-- | drivers/spi/spi-xilinx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c index bb6ae4ee7dea..b07b004cea13 100644 --- a/drivers/spi/spi-xilinx.c +++ b/drivers/spi/spi-xilinx.c @@ -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; } |