Lines Matching refs:crg
140 struct hi3519_crg_data *crg = platform_get_drvdata(pdev); in hi3519_clk_unregister() local
146 crg->clk_data); in hi3519_clk_unregister()
149 crg->clk_data); in hi3519_clk_unregister()
152 crg->clk_data); in hi3519_clk_unregister()
157 struct hi3519_crg_data *crg; in hi3519_clk_probe() local
159 crg = devm_kmalloc(&pdev->dev, sizeof(*crg), GFP_KERNEL); in hi3519_clk_probe()
160 if (!crg) in hi3519_clk_probe()
163 crg->rstc = hisi_reset_init(pdev); in hi3519_clk_probe()
164 if (!crg->rstc) in hi3519_clk_probe()
167 crg->clk_data = hi3519_clk_register(pdev); in hi3519_clk_probe()
168 if (IS_ERR(crg->clk_data)) { in hi3519_clk_probe()
169 hisi_reset_exit(crg->rstc); in hi3519_clk_probe()
170 return PTR_ERR(crg->clk_data); in hi3519_clk_probe()
173 platform_set_drvdata(pdev, crg); in hi3519_clk_probe()
179 struct hi3519_crg_data *crg = platform_get_drvdata(pdev); in hi3519_clk_remove() local
181 hisi_reset_exit(crg->rstc); in hi3519_clk_remove()