Skip to content

Commit

Permalink
spi: falcon: Remove unnecessary platform_set_drvdata()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Shiyan authored and Mark Brown committed Jun 6, 2014
1 parent ba9e4b4 commit 43e48cc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi-falcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 43e48cc

Please sign in to comment.