mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
082339bc63
commit
913b19660e
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue