]> git.baikalelectronics.ru Git - kernel.git/commitdiff
spi/clps711x: Remove unneeded devm_ deallocations
authorMark Brown <broonie@linaro.org>
Fri, 5 Jul 2013 18:26:52 +0000 (19:26 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 15 Jul 2013 10:36:33 +0000 (11:36 +0100)
The whole point of devm is that it'll do these automatically.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-clps711x.c

index 17965fe225ccd4cf50aef85235466468b0de049a..5655acf55bfe35a7d4f0fcb853e56435b4e847c9 100644 (file)
@@ -239,11 +239,8 @@ static int spi_clps711x_probe(struct platform_device *pdev)
        }
 
        dev_err(&pdev->dev, "Failed to register master\n");
-       devm_free_irq(&pdev->dev, IRQ_SSEOTI, hw);
 
 clk_out:
-       devm_clk_put(&pdev->dev, hw->spi_clk);
-
 err_out:
        while (--i >= 0)
                if (gpio_is_valid(hw->chipselect[i]))
@@ -261,13 +258,10 @@ static int spi_clps711x_remove(struct platform_device *pdev)
        struct spi_master *master = platform_get_drvdata(pdev);
        struct spi_clps711x_data *hw = spi_master_get_devdata(master);
 
-       devm_free_irq(&pdev->dev, IRQ_SSEOTI, hw);
-
        for (i = 0; i < master->num_chipselect; i++)
                if (gpio_is_valid(hw->chipselect[i]))
                        gpio_free(hw->chipselect[i]);
 
-       devm_clk_put(&pdev->dev, hw->spi_clk);
        spi_unregister_master(master);
        kfree(master);