dwsmmio->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(dwsmmio->clk))
return PTR_ERR(dwsmmio->clk);
- ret = clk_enable(dwsmmio->clk);
+ ret = clk_prepare_enable(dwsmmio->clk);
if (ret)
return ret;
return 0;
out:
- clk_disable(dwsmmio->clk);
+ clk_disable_unprepare(dwsmmio->clk);
return ret;
}
{
struct dw_spi_mmio *dwsmmio = platform_get_drvdata(pdev);
- clk_disable(dwsmmio->clk);
+ clk_disable_unprepare(dwsmmio->clk);
dw_spi_remove_host(&dwsmmio->dws);
return 0;