mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
ba9e4b4a65
commit
43e48cc3e6
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue