spi: falcon: Remove unnecessary platform_set_drvdata()
authorAlexander Shiyan <shc_work@mail.ru>
Wed, 4 Jun 2014 14:17:07 +0000 (18:17 +0400)
committerMark Brown <broonie@linaro.org>
Fri, 6 Jun 2014 10:14:29 +0000 (11:14 +0100)
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>
drivers/spi/spi-falcon.c

index ba441ad..f73b300 100644 (file)
@@ -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);