Lines Matching refs:clk_table
245 struct clk_hw **clk_table; in s3c24xx_dclk_probe() local
255 clk_table = s3c24xx_dclk->clk_data.hws; in s3c24xx_dclk_probe()
270 clk_table[MUX_DCLK0] = clk_hw_register_mux(&pdev->dev, "mux_dclk0", in s3c24xx_dclk_probe()
275 clk_table[MUX_DCLK1] = clk_hw_register_mux(&pdev->dev, "mux_dclk1", in s3c24xx_dclk_probe()
281 clk_table[DIV_DCLK0] = clk_hw_register_divider(&pdev->dev, "div_dclk0", in s3c24xx_dclk_probe()
284 clk_table[DIV_DCLK1] = clk_hw_register_divider(&pdev->dev, "div_dclk1", in s3c24xx_dclk_probe()
288 clk_table[GATE_DCLK0] = clk_hw_register_gate(&pdev->dev, "gate_dclk0", in s3c24xx_dclk_probe()
292 clk_table[GATE_DCLK1] = clk_hw_register_gate(&pdev->dev, "gate_dclk1", in s3c24xx_dclk_probe()
297 clk_table[MUX_CLKOUT0] = s3c24xx_register_clkout(&pdev->dev, in s3c24xx_dclk_probe()
300 clk_table[MUX_CLKOUT1] = s3c24xx_register_clkout(&pdev->dev, in s3c24xx_dclk_probe()
305 if (IS_ERR(clk_table[i])) { in s3c24xx_dclk_probe()
307 ret = PTR_ERR(clk_table[i]); in s3c24xx_dclk_probe()
311 ret = clk_hw_register_clkdev(clk_table[MUX_DCLK0], "dclk0", NULL); in s3c24xx_dclk_probe()
313 ret = clk_hw_register_clkdev(clk_table[MUX_DCLK1], "dclk1", in s3c24xx_dclk_probe()
316 ret = clk_hw_register_clkdev(clk_table[MUX_CLKOUT0], in s3c24xx_dclk_probe()
319 ret = clk_hw_register_clkdev(clk_table[MUX_CLKOUT1], in s3c24xx_dclk_probe()
332 ret = clk_notifier_register(clk_table[DIV_DCLK0]->clk, in s3c24xx_dclk_probe()
337 ret = clk_notifier_register(clk_table[DIV_DCLK1]->clk, in s3c24xx_dclk_probe()
345 clk_notifier_unregister(clk_table[DIV_DCLK0]->clk, in s3c24xx_dclk_probe()
349 if (clk_table[i] && !IS_ERR(clk_table[i])) in s3c24xx_dclk_probe()
350 clk_hw_unregister(clk_table[i]); in s3c24xx_dclk_probe()
358 struct clk_hw **clk_table = s3c24xx_dclk->clk_data.hws; in s3c24xx_dclk_remove() local
361 clk_notifier_unregister(clk_table[DIV_DCLK1]->clk, in s3c24xx_dclk_remove()
363 clk_notifier_unregister(clk_table[DIV_DCLK0]->clk, in s3c24xx_dclk_remove()
367 clk_hw_unregister(clk_table[i]); in s3c24xx_dclk_remove()