From: Alexander Shiyan Date: Wed, 4 Jun 2014 14:17:07 +0000 (+0400) Subject: spi: falcon: Remove unnecessary platform_set_drvdata() X-Git-Tag: v3.17-rc1~114^2~3^4~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=43e48cc3e65777bc8b252001c0184fca1c060758;p=karo-tx-linux.git 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 Signed-off-by: Mark Brown --- 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);