forked from Minki/linux
spi: spi-txx9: Remove redundant platform_set_drvdata()
Setting platform data to NULL is not necessary. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
e4aa937ec7
commit
69a0171901
@ -425,7 +425,6 @@ exit:
|
||||
clk_disable(c->clk);
|
||||
clk_put(c->clk);
|
||||
}
|
||||
platform_set_drvdata(dev, NULL);
|
||||
spi_master_put(master);
|
||||
return ret;
|
||||
}
|
||||
@ -436,7 +435,6 @@ static int txx9spi_remove(struct platform_device *dev)
|
||||
struct txx9spi *c = spi_master_get_devdata(master);
|
||||
|
||||
spi_unregister_master(master);
|
||||
platform_set_drvdata(dev, NULL);
|
||||
destroy_workqueue(c->workqueue);
|
||||
clk_disable(c->clk);
|
||||
clk_put(c->clk);
|
||||
|
Loading…
Reference in New Issue
Block a user