diff --git a/drivers/spi/spi-clps711x.c b/drivers/spi/spi-clps711x.c index 1a786834c16dc6e481a0fded9900af61b84eac6a..73b9a461853ffea12a3d34ad8b758a9a8804de1c 100644 --- a/drivers/spi/spi-clps711x.c +++ b/drivers/spi/spi-clps711x.c @@ -226,7 +226,6 @@ static int spi_clps711x_probe(struct platform_device *pdev) dev_name(&pdev->dev), hw); if (ret) { dev_err(&pdev->dev, "Can't request IRQ\n"); - clk_put(hw->spi_clk); goto err_out; } @@ -246,7 +245,6 @@ static int spi_clps711x_probe(struct platform_device *pdev) gpio_free(hw->chipselect[i]); spi_master_put(master); - kfree(master); return ret; } @@ -262,7 +260,6 @@ static int spi_clps711x_remove(struct platform_device *pdev) gpio_free(hw->chipselect[i]); spi_unregister_master(master); - kfree(master); return 0; }