From: Alexander Shiyan Date: Wed, 4 Jun 2014 14:17:08 +0000 (+0400) Subject: spi: omap-100k: Remove unnecessary platform_set_drvdata() X-Git-Tag: v3.17-rc1~114^2~3^4~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d746abd4964f06482e9aab38b297f41353eb6433;p=karo-tx-linux.git spi: omap-100k: 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-omap-100k.c b/drivers/spi/spi-omap-100k.c index e7ffcded4e14..5e91858f6f01 100644 --- a/drivers/spi/spi-omap-100k.c +++ b/drivers/spi/spi-omap-100k.c @@ -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); /*