spi: spi-txx9: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 31 May 2013 07:59:08 +0000 (13:29 +0530)
committerMark Brown <broonie@linaro.org>
Sat, 1 Jun 2013 19:18:57 +0000 (20:18 +0100)
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>
drivers/spi/spi-txx9.c

index adb853047926fef7880e88543c1a4555e433b243..4f2eecf1603ba79b5a532b920344d288b098d87d 100644 (file)
@@ -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);