diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-31 13:47:49 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-04 19:38:32 +0200 |
commit | 913b19660e166e718d419cccd753c3990881f17c (patch) | |
tree | e2e5f64e2e6022af4e61c9c601499599a298d42e /drivers/spi | |
parent | spi: spi-xilinx: Add run run-time endian detection (diff) | |
download | linux-913b19660e166e718d419cccd753c3990881f17c.tar.xz 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')
-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; } |