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

index 4cd62f63654741010a70fa7d45a4aae820a87e32..ce538dad526b3a34d08dd5498e803d08b23862e8 100644 (file)
@@ -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);