summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-06-04 18:17:07 +0400
committerMark Brown <broonie@linaro.org>2014-06-06 11:14:29 +0100
commit43e48cc3e65777bc8b252001c0184fca1c060758 (patch)
tree61d983af0d7a68c9a550c61d0627ca868a2fcffb
parentba9e4b4a652d01bce7299ad8ed9abb9c5701450a (diff)
downloadblackbird-op-linux-43e48cc3e65777bc8b252001c0184fca1c060758.tar.gz
blackbird-op-linux-43e48cc3e65777bc8b252001c0184fca1c060758.zip
spi: falcon: Remove unnecessary platform_set_drvdata()
Drop call to platform_set_drvdata() as driver data is not used anywhere in the driver. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--drivers/spi/spi-falcon.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-falcon.c b/drivers/spi/spi-falcon.c
index ba441ad9a007..f73b3004d6d3 100644
--- a/drivers/spi/spi-falcon.c
+++ b/drivers/spi/spi-falcon.c
@@ -425,8 +425,6 @@ static int falcon_sflash_probe(struct platform_device *pdev)
master->unprepare_transfer_hardware = falcon_sflash_unprepare_xfer;
master->dev.of_node = pdev->dev.of_node;
- platform_set_drvdata(pdev, priv);
-
ret = devm_spi_register_master(&pdev->dev, master);
if (ret)
spi_master_put(master);
OpenPOWER on IntegriCloud