| From 3bee85fa29ad04923a703f5c3dccda442f35a15d Mon Sep 17 00:00:00 2001 |
| From: Sachin Kamat <sachin.kamat@linaro.org> |
| Date: Fri, 31 May 2013 17:17:49 +0530 |
| Subject: 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> |
| (cherry picked from commit 913b19660e166e718d419cccd753c3990881f17c) |
| Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp> |
| Signed-off-by: Yoshitake Kobayashi <yoshitake.kobayashi@toshiba.co.jp> |
| --- |
| drivers/spi/spi-xilinx.c | 1 - |
| 1 file changed, 1 deletion(-) |
| |
| diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c |
| index 882f2cf3edbd..a6c475b43dcc 100644 |
| --- a/drivers/spi/spi-xilinx.c |
| +++ b/drivers/spi/spi-xilinx.c |
| @@ -530,7 +530,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; |
| } |
| -- |
| 1.8.5.rc3 |
| |