Home
last modified time | relevance | path

Searched refs:clk_spi (Results 1 – 2 of 2) sorted by relevance

/drivers/spi/
Dspi-sprd.c862 struct clk *clk_spi, *clk_parent; in sprd_spi_clk_init() local
864 clk_spi = devm_clk_get(&pdev->dev, "spi"); in sprd_spi_clk_init()
865 if (IS_ERR(clk_spi)) { in sprd_spi_clk_init()
867 clk_spi = NULL; in sprd_spi_clk_init()
882 if (!clk_set_parent(clk_spi, clk_parent)) in sprd_spi_clk_init()
883 ss->src_clk = clk_get_rate(clk_spi); in sprd_spi_clk_init()
/drivers/soc/mediatek/
Dmtk-pmic-wrap.c1077 struct clk *clk_spi; member
2079 wrp->clk_spi = devm_clk_get(wrp->dev, "spi"); in pwrap_probe()
2080 if (IS_ERR(wrp->clk_spi)) { in pwrap_probe()
2082 PTR_ERR(wrp->clk_spi)); in pwrap_probe()
2083 return PTR_ERR(wrp->clk_spi); in pwrap_probe()
2093 ret = clk_prepare_enable(wrp->clk_spi); in pwrap_probe()
2169 clk_disable_unprepare(wrp->clk_spi); in pwrap_probe()