Skip to content

Commit

Permalink
spi: spi-xilinx: Remove redundant platform_set_drvdata()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Mark Brown committed Jun 4, 2013
1 parent 082339b commit 913b196
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/spi/spi-xilinx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 913b196

Please sign in to comment.