From: Alexander Shiyan Date: Wed, 4 Jun 2014 14:17:06 +0000 (+0400) Subject: spi: clps711x: Remove unnecessary platform_set_drvdata() X-Git-Tag: v3.17-rc1~114^2~3^4~6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ba9e4b4a652d01bce7299ad8ed9abb9c5701450a;p=karo-tx-linux.git spi: clps711x: 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-clps711x.c b/drivers/spi/spi-clps711x.c index 4cd62f636547..ce538dad526b 100644 --- a/drivers/spi/spi-clps711x.c +++ b/drivers/spi/spi-clps711x.c @@ -184,8 +184,6 @@ static int spi_clps711x_probe(struct platform_device *pdev) } master->max_speed_hz = clk_get_rate(hw->spi_clk); - platform_set_drvdata(pdev, master); - hw->syscon = syscon_regmap_lookup_by_pdevname("syscon.3"); if (IS_ERR(hw->syscon)) { ret = PTR_ERR(hw->syscon);