Commit c8b94d8492e6e3f938519517ae859f94820f9422

Authored by Mark Brown
1 parent ad81f0545e

spi/clps711x: Remove unneeded devm_ deallocations

The whole point of devm is that it'll do these automatically.

Signed-off-by: Mark Brown <broonie@linaro.org>

Showing 1 changed file with 0 additions and 6 deletions Side-by-side Diff

drivers/spi/spi-clps711x.c
... ... @@ -239,11 +239,8 @@
239 239 }
240 240  
241 241 dev_err(&pdev->dev, "Failed to register master\n");
242   - devm_free_irq(&pdev->dev, IRQ_SSEOTI, hw);
243 242  
244 243 clk_out:
245   - devm_clk_put(&pdev->dev, hw->spi_clk);
246   -
247 244 err_out:
248 245 while (--i >= 0)
249 246 if (gpio_is_valid(hw->chipselect[i]))
250 247  
... ... @@ -261,13 +258,10 @@
261 258 struct spi_master *master = platform_get_drvdata(pdev);
262 259 struct spi_clps711x_data *hw = spi_master_get_devdata(master);
263 260  
264   - devm_free_irq(&pdev->dev, IRQ_SSEOTI, hw);
265   -
266 261 for (i = 0; i < master->num_chipselect; i++)
267 262 if (gpio_is_valid(hw->chipselect[i]))
268 263 gpio_free(hw->chipselect[i]);
269 264  
270   - devm_clk_put(&pdev->dev, hw->spi_clk);
271 265 spi_unregister_master(master);
272 266 kfree(master);
273 267