spi: omap-100k: Remove unnecessary platform_set_drvdata()
authorAlexander Shiyan <shc_work@mail.ru>
Wed, 4 Jun 2014 14:17:08 +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-omap-100k.c

index e7ffcded4e14b84d28cef21e0c8f321690d49e94..5e91858f6f01f819dfb0f4191e7f369e6f9bbafe 100644 (file)
@@ -420,8 +420,6 @@ static int omap1_spi100k_probe(struct platform_device *pdev)
        master->min_speed_hz = OMAP1_SPI100K_MAX_FREQ/(1<<16);
        master->max_speed_hz = OMAP1_SPI100K_MAX_FREQ;
 
-       platform_set_drvdata(pdev, master);
-
        spi100k = spi_master_get_devdata(master);
 
        /*