/Linux-v5.15/drivers/clk/mediatek/ |
D | clk-mtk.c | 24 struct clk_onecell_data *clk_data; in mtk_alloc_clk_data() local 26 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); in mtk_alloc_clk_data() 27 if (!clk_data) in mtk_alloc_clk_data() 30 clk_data->clks = kcalloc(clk_num, sizeof(*clk_data->clks), GFP_KERNEL); in mtk_alloc_clk_data() 31 if (!clk_data->clks) in mtk_alloc_clk_data() 34 clk_data->clk_num = clk_num; in mtk_alloc_clk_data() 37 clk_data->clks[i] = ERR_PTR(-ENOENT); in mtk_alloc_clk_data() 39 return clk_data; in mtk_alloc_clk_data() 41 kfree(clk_data); in mtk_alloc_clk_data() 47 int num, struct clk_onecell_data *clk_data) in mtk_clk_register_fixed_clks() argument [all …]
|
D | clk-mt7622.c | 614 struct clk_onecell_data *clk_data; in mtk_topckgen_init() local 622 clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in mtk_topckgen_init() 625 clk_data); in mtk_topckgen_init() 628 clk_data); in mtk_topckgen_init() 631 base, &mt7622_clk_lock, clk_data); in mtk_topckgen_init() 634 base, &mt7622_clk_lock, clk_data); in mtk_topckgen_init() 637 clk_data); in mtk_topckgen_init() 639 clk_prepare_enable(clk_data->clks[CLK_TOP_AXI_SEL]); in mtk_topckgen_init() 640 clk_prepare_enable(clk_data->clks[CLK_TOP_MEM_SEL]); in mtk_topckgen_init() 641 clk_prepare_enable(clk_data->clks[CLK_TOP_DDRPHYCFG_SEL]); in mtk_topckgen_init() [all …]
|
D | clk-mt7629.c | 574 struct clk_onecell_data *clk_data; in mtk_topckgen_init() local 582 clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in mtk_topckgen_init() 585 clk_data); in mtk_topckgen_init() 588 clk_data); in mtk_topckgen_init() 591 base, &mt7629_clk_lock, clk_data); in mtk_topckgen_init() 593 clk_prepare_enable(clk_data->clks[CLK_TOP_AXI_SEL]); in mtk_topckgen_init() 594 clk_prepare_enable(clk_data->clks[CLK_TOP_MEM_SEL]); in mtk_topckgen_init() 595 clk_prepare_enable(clk_data->clks[CLK_TOP_DDRPHYCFG_SEL]); in mtk_topckgen_init() 597 return of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); in mtk_topckgen_init() 603 struct clk_onecell_data *clk_data; in mtk_infrasys_init() local [all …]
|
D | clk-mt8173.c | 839 struct clk_onecell_data *clk_data; in mtk_topckgen_init() local 849 mt8173_top_clk_data = clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in mtk_topckgen_init() 851 mtk_clk_register_fixed_clks(fixed_clks, ARRAY_SIZE(fixed_clks), clk_data); in mtk_topckgen_init() 852 mtk_clk_register_factors(top_divs, ARRAY_SIZE(top_divs), clk_data); in mtk_topckgen_init() 854 &mt8173_clk_lock, clk_data); in mtk_topckgen_init() 856 r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); in mtk_topckgen_init() 867 struct clk_onecell_data *clk_data; in mtk_infrasys_init() local 870 clk_data = mtk_alloc_clk_data(CLK_INFRA_NR_CLK); in mtk_infrasys_init() 873 clk_data); in mtk_infrasys_init() 874 mtk_clk_register_factors(infra_divs, ARRAY_SIZE(infra_divs), clk_data); in mtk_infrasys_init() [all …]
|
D | clk-mt8135.c | 518 struct clk_onecell_data *clk_data; in mtk_topckgen_init() local 528 clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in mtk_topckgen_init() 530 mtk_clk_register_factors(root_clk_alias, ARRAY_SIZE(root_clk_alias), clk_data); in mtk_topckgen_init() 531 mtk_clk_register_factors(top_divs, ARRAY_SIZE(top_divs), clk_data); in mtk_topckgen_init() 533 &mt8135_clk_lock, clk_data); in mtk_topckgen_init() 535 clk_prepare_enable(clk_data->clks[CLK_TOP_CCI_SEL]); in mtk_topckgen_init() 537 r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); in mtk_topckgen_init() 546 struct clk_onecell_data *clk_data; in mtk_infrasys_init() local 549 clk_data = mtk_alloc_clk_data(CLK_INFRA_NR_CLK); in mtk_infrasys_init() 552 clk_data); in mtk_infrasys_init() [all …]
|
/Linux-v5.15/drivers/clk/hisilicon/ |
D | clk.c | 29 struct hisi_clock_data *clk_data; in hisi_clk_alloc() local 33 clk_data = devm_kmalloc(&pdev->dev, sizeof(*clk_data), GFP_KERNEL); in hisi_clk_alloc() 34 if (!clk_data) in hisi_clk_alloc() 40 clk_data->base = devm_ioremap(&pdev->dev, in hisi_clk_alloc() 42 if (!clk_data->base) in hisi_clk_alloc() 51 clk_data->clk_data.clks = clk_table; in hisi_clk_alloc() 52 clk_data->clk_data.clk_num = nr_clks; in hisi_clk_alloc() 54 return clk_data; in hisi_clk_alloc() 61 struct hisi_clock_data *clk_data; in hisi_clk_init() local 71 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); in hisi_clk_init() [all …]
|
D | crg-hi3516cv300.c | 132 struct hisi_clock_data *clk_data; in hi3516cv300_clk_register() local 135 clk_data = hisi_clk_alloc(pdev, HI3516CV300_CRG_NR_CLKS); in hi3516cv300_clk_register() 136 if (!clk_data) in hi3516cv300_clk_register() 140 ARRAY_SIZE(hi3516cv300_fixed_rate_clks), clk_data); in hi3516cv300_clk_register() 145 ARRAY_SIZE(hi3516cv300_mux_clks), clk_data); in hi3516cv300_clk_register() 150 ARRAY_SIZE(hi3516cv300_gate_clks), clk_data); in hi3516cv300_clk_register() 155 of_clk_src_onecell_get, &clk_data->clk_data); in hi3516cv300_clk_register() 159 return clk_data; in hi3516cv300_clk_register() 163 ARRAY_SIZE(hi3516cv300_gate_clks), clk_data); in hi3516cv300_clk_register() 166 ARRAY_SIZE(hi3516cv300_mux_clks), clk_data); in hi3516cv300_clk_register() [all …]
|
D | clk-hi3519.c | 30 struct hisi_clock_data *clk_data; member 78 struct hisi_clock_data *clk_data; in hi3519_clk_register() local 81 clk_data = hisi_clk_alloc(pdev, HI3519_NR_CLKS); in hi3519_clk_register() 82 if (!clk_data) in hi3519_clk_register() 87 clk_data); in hi3519_clk_register() 93 clk_data); in hi3519_clk_register() 99 clk_data); in hi3519_clk_register() 104 of_clk_src_onecell_get, &clk_data->clk_data); in hi3519_clk_register() 108 return clk_data; in hi3519_clk_register() 113 clk_data); in hi3519_clk_register() [all …]
|
D | crg-hi3798cv200.c | 199 struct hisi_clock_data *clk_data; in hi3798cv200_clk_register() local 202 clk_data = hisi_clk_alloc(pdev, HI3798CV200_CRG_NR_CLKS); in hi3798cv200_clk_register() 203 if (!clk_data) in hi3798cv200_clk_register() 210 clk_data); in hi3798cv200_clk_register() 216 clk_data); in hi3798cv200_clk_register() 222 clk_data); in hi3798cv200_clk_register() 228 clk_data); in hi3798cv200_clk_register() 233 of_clk_src_onecell_get, &clk_data->clk_data); in hi3798cv200_clk_register() 237 return clk_data; in hi3798cv200_clk_register() 242 clk_data); in hi3798cv200_clk_register() [all …]
|
D | clk-hi3670.c | 827 struct hisi_clock_data *clk_data; in hi3670_clk_crgctrl_init() local 836 clk_data = hisi_clk_init(np, nr); in hi3670_clk_crgctrl_init() 837 if (!clk_data) in hi3670_clk_crgctrl_init() 842 clk_data); in hi3670_clk_crgctrl_init() 845 clk_data); in hi3670_clk_crgctrl_init() 848 clk_data); in hi3670_clk_crgctrl_init() 851 clk_data); in hi3670_clk_crgctrl_init() 854 clk_data); in hi3670_clk_crgctrl_init() 857 clk_data); in hi3670_clk_crgctrl_init() 862 struct hisi_clock_data *clk_data; in hi3670_clk_pctrl_init() local [all …]
|
D | clk-hi3559a.c | 500 data->clk_data.clks[clks[i].id] = clk; in hisi_clk_register_pll() 508 struct hisi_clock_data *clk_data; in hi3559av100_clk_register() local 511 clk_data = hisi_clk_alloc(pdev, HI3559AV100_CRG_NR_CLKS); in hi3559av100_clk_register() 512 if (!clk_data) in hi3559av100_clk_register() 516 ARRAY_SIZE(hi3559av100_fixed_rate_clks_crg), clk_data); in hi3559av100_clk_register() 521 ARRAY_SIZE(hi3559av100_pll_clks), clk_data, &pdev->dev); in hi3559av100_clk_register() 524 ARRAY_SIZE(hi3559av100_mux_clks_crg), clk_data); in hi3559av100_clk_register() 529 ARRAY_SIZE(hi3559av100_gate_clks), clk_data); in hi3559av100_clk_register() 534 of_clk_src_onecell_get, &clk_data->clk_data); in hi3559av100_clk_register() 538 return clk_data; in hi3559av100_clk_register() [all …]
|
D | clk-hi6220.c | 182 struct hisi_clock_data *clk_data; in hi6220_clk_sys_init() local 184 clk_data = hisi_clk_init(np, HI6220_SYS_NR_CLKS); in hi6220_clk_sys_init() 185 if (!clk_data) in hi6220_clk_sys_init() 189 ARRAY_SIZE(hi6220_separated_gate_clks_sys), clk_data); in hi6220_clk_sys_init() 192 ARRAY_SIZE(hi6220_mux_clks_sys), clk_data); in hi6220_clk_sys_init() 195 ARRAY_SIZE(hi6220_div_clks_sys), clk_data); in hi6220_clk_sys_init() 239 struct hisi_clock_data *clk_data; in hi6220_clk_media_init() local 241 clk_data = hisi_clk_init(np, HI6220_MEDIA_NR_CLKS); in hi6220_clk_media_init() 242 if (!clk_data) in hi6220_clk_media_init() 246 ARRAY_SIZE(hi6220_separated_gate_clks_media), clk_data); in hi6220_clk_media_init() [all …]
|
/Linux-v5.15/drivers/clk/socfpga/ |
D | clk-agilex.c | 352 data->clk_data.hws[clks[i].id] = hw_clk; in n5x_clk_register_c_perip() 371 data->clk_data.hws[clks[i].id] = hw_clk; in agilex_clk_register_c_perip() 390 data->clk_data.hws[clks[i].id] = hw_clk; in agilex_clk_register_cnt_perip() 410 data->clk_data.hws[clks[i].id] = hw_clk; in agilex_clk_register_gate() 430 data->clk_data.hws[clks[i].id] = hw_clk; in agilex_clk_register_pll() 450 data->clk_data.hws[clks[i].id] = hw_clk; in n5x_clk_register_pll() 460 struct stratix10_clock_data *clk_data; in agilex_clkmgr_init() local 472 clk_data = devm_kzalloc(dev, struct_size(clk_data, clk_data.hws, in agilex_clkmgr_init() 474 if (!clk_data) in agilex_clkmgr_init() 478 clk_data->clk_data.hws[i] = ERR_PTR(-ENOENT); in agilex_clkmgr_init() [all …]
|
D | clk-s10.c | 321 data->clk_data.hws[clks[i].id] = hw_clk; in s10_clk_register_c_perip() 340 data->clk_data.hws[clks[i].id] = hw_clk; in s10_clk_register_cnt_perip() 360 data->clk_data.hws[clks[i].id] = hw_clk; in s10_clk_register_gate() 380 data->clk_data.hws[clks[i].id] = hw_clk; in s10_clk_register_pll() 390 struct stratix10_clock_data *clk_data; in s10_clkmgr_init() local 403 clk_data = devm_kzalloc(dev, struct_size(clk_data, clk_data.hws, in s10_clkmgr_init() 405 if (!clk_data) in s10_clkmgr_init() 409 clk_data->clk_data.hws[i] = ERR_PTR(-ENOENT); in s10_clkmgr_init() 411 clk_data->base = base; in s10_clkmgr_init() 412 clk_data->clk_data.num = num_clks; in s10_clkmgr_init() [all …]
|
/Linux-v5.15/drivers/clk/ |
D | clk-clps711x.c | 40 struct clk_hw_onecell_data clk_data; member 54 clps711x_clk = kzalloc(struct_size(clps711x_clk, clk_data.hws, in clps711x_clk_init_dt() 106 clps711x_clk->clk_data.hws[CLPS711X_CLK_DUMMY] = in clps711x_clk_init_dt() 108 clps711x_clk->clk_data.hws[CLPS711X_CLK_CPU] = in clps711x_clk_init_dt() 110 clps711x_clk->clk_data.hws[CLPS711X_CLK_BUS] = in clps711x_clk_init_dt() 112 clps711x_clk->clk_data.hws[CLPS711X_CLK_PLL] = in clps711x_clk_init_dt() 114 clps711x_clk->clk_data.hws[CLPS711X_CLK_TIMERREF] = in clps711x_clk_init_dt() 116 clps711x_clk->clk_data.hws[CLPS711X_CLK_TIMER1] = in clps711x_clk_init_dt() 120 clps711x_clk->clk_data.hws[CLPS711X_CLK_TIMER2] = in clps711x_clk_init_dt() 124 clps711x_clk->clk_data.hws[CLPS711X_CLK_PWM] = in clps711x_clk_init_dt() [all …]
|
/Linux-v5.15/drivers/clk/imx/ |
D | clk-imx7ulp.c | 48 struct clk_hw_onecell_data *clk_data; in imx7ulp_clk_scg1_init() local 52 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_SCG1_END), in imx7ulp_clk_scg1_init() 54 if (!clk_data) in imx7ulp_clk_scg1_init() 57 clk_data->num = IMX7ULP_CLK_SCG1_END; in imx7ulp_clk_scg1_init() 58 hws = clk_data->hws; in imx7ulp_clk_scg1_init() 129 imx_check_clk_hws(hws, clk_data->num); in imx7ulp_clk_scg1_init() 131 of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data); in imx7ulp_clk_scg1_init() 137 struct clk_hw_onecell_data *clk_data; in imx7ulp_clk_pcc2_init() local 141 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_PCC2_END), in imx7ulp_clk_pcc2_init() 143 if (!clk_data) in imx7ulp_clk_pcc2_init() [all …]
|
/Linux-v5.15/drivers/mmc/host/ |
D | sdhci-of-arasan.c | 150 struct sdhci_arasan_clk_data clk_data; member 257 struct sdhci_arasan_clk_data *clk_data = &sdhci_arasan->clk_data; in sdhci_arasan_set_clock() local 315 if (clk_data->set_clk_delays) in sdhci_arasan_set_clock() 316 clk_data->set_clk_delays(host); in sdhci_arasan_set_clock() 572 struct sdhci_arasan_clk_data *clk_data = in sdhci_arasan_sdcardclk_recalc_rate() local 575 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_arasan_sdcardclk_recalc_rate() 599 struct sdhci_arasan_clk_data *clk_data = in sdhci_arasan_sampleclk_recalc_rate() local 602 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_arasan_sampleclk_recalc_rate() 624 struct sdhci_arasan_clk_data *clk_data = in sdhci_zynqmp_sdcardclk_set_phase() local 627 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_zynqmp_sdcardclk_set_phase() [all …]
|
/Linux-v5.15/drivers/gpu/drm/sun4i/ |
D | sun8i_tcon_top.c | 128 struct clk_hw_onecell_data *clk_data; in sun8i_tcon_top_bind() local 141 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, CLK_NUM), in sun8i_tcon_top_bind() 143 if (!clk_data) in sun8i_tcon_top_bind() 145 tcon_top->clk_data = clk_data; in sun8i_tcon_top_bind() 194 clk_data->hws[CLK_TCON_TOP_TV0] = in sun8i_tcon_top_bind() 200 clk_data->hws[CLK_TCON_TOP_TV1] = in sun8i_tcon_top_bind() 206 clk_data->hws[CLK_TCON_TOP_DSI] = in sun8i_tcon_top_bind() 212 if (IS_ERR(clk_data->hws[i])) { in sun8i_tcon_top_bind() 213 ret = PTR_ERR(clk_data->hws[i]); in sun8i_tcon_top_bind() 217 clk_data->num = CLK_NUM; in sun8i_tcon_top_bind() [all …]
|
/Linux-v5.15/drivers/clk/pistachio/ |
D | clk.c | 24 p->clk_data.clks = kcalloc(num_clks, sizeof(struct clk *), GFP_KERNEL); in pistachio_clk_alloc_provider() 25 if (!p->clk_data.clks) in pistachio_clk_alloc_provider() 27 p->clk_data.clk_num = num_clks; in pistachio_clk_alloc_provider() 38 kfree(p->clk_data.clks); in pistachio_clk_alloc_provider() 48 for (i = 0; i < p->clk_data.clk_num; i++) { in pistachio_clk_register_provider() 49 if (IS_ERR(p->clk_data.clks[i])) in pistachio_clk_register_provider() 51 PTR_ERR(p->clk_data.clks[i])); in pistachio_clk_register_provider() 54 of_clk_add_provider(p->node, of_clk_src_onecell_get, &p->clk_data); in pistachio_clk_register_provider() 69 p->clk_data.clks[gate[i].id] = clk; in pistachio_clk_register_gate() 87 p->clk_data.clks[mux[i].id] = clk; in pistachio_clk_register_mux() [all …]
|
/Linux-v5.15/drivers/clk/sunxi/ |
D | clk-sun8i-bus-gates.c | 25 struct clk_onecell_data *clk_data; in sun8i_h3_bus_gates_init() local 49 clk_data = kmalloc(sizeof(struct clk_onecell_data), GFP_KERNEL); in sun8i_h3_bus_gates_init() 50 if (!clk_data) in sun8i_h3_bus_gates_init() 56 clk_data->clks = kcalloc(number + 1, sizeof(struct clk *), GFP_KERNEL); in sun8i_h3_bus_gates_init() 57 if (!clk_data->clks) in sun8i_h3_bus_gates_init() 81 clk_data->clks[index] = clk_register_gate(NULL, clk_name, in sun8i_h3_bus_gates_init() 87 if (IS_ERR(clk_data->clks[index])) { in sun8i_h3_bus_gates_init() 93 clk_data->clk_num = number + 1; in sun8i_h3_bus_gates_init() 94 of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); in sun8i_h3_bus_gates_init() 99 kfree(clk_data); in sun8i_h3_bus_gates_init()
|
D | clk-sun6i-apb0-gates.c | 39 struct clk_onecell_data *clk_data; in sun6i_a31_apb0_gates_clk_probe() local 65 clk_data = devm_kzalloc(&pdev->dev, sizeof(struct clk_onecell_data), in sun6i_a31_apb0_gates_clk_probe() 67 if (!clk_data) in sun6i_a31_apb0_gates_clk_probe() 72 clk_data->clks = devm_kcalloc(&pdev->dev, (ngates + 1), in sun6i_a31_apb0_gates_clk_probe() 74 if (!clk_data->clks) in sun6i_a31_apb0_gates_clk_probe() 81 clk_data->clks[i] = clk_register_gate(&pdev->dev, clk_name, in sun6i_a31_apb0_gates_clk_probe() 84 WARN_ON(IS_ERR(clk_data->clks[i])); in sun6i_a31_apb0_gates_clk_probe() 89 clk_data->clk_num = ngates + 1; in sun6i_a31_apb0_gates_clk_probe() 91 return of_clk_add_provider(np, of_clk_src_onecell_get, clk_data); in sun6i_a31_apb0_gates_clk_probe()
|
D | clk-simple-gates.c | 22 struct clk_onecell_data *clk_data; in sunxi_simple_gates_setup() local 39 clk_data = kmalloc(sizeof(struct clk_onecell_data), GFP_KERNEL); in sunxi_simple_gates_setup() 40 if (!clk_data) in sunxi_simple_gates_setup() 46 clk_data->clks = kcalloc(number + 1, sizeof(struct clk *), GFP_KERNEL); in sunxi_simple_gates_setup() 47 if (!clk_data->clks) in sunxi_simple_gates_setup() 57 clk_data->clks[index] = clk_register_gate(NULL, clk_name, in sunxi_simple_gates_setup() 64 if (IS_ERR(clk_data->clks[index])) { in sunxi_simple_gates_setup() 71 clk_prepare_enable(clk_data->clks[index]); in sunxi_simple_gates_setup() 75 clk_data->clk_num = number + 1; in sunxi_simple_gates_setup() 76 of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); in sunxi_simple_gates_setup() [all …]
|
/Linux-v5.15/drivers/clk/nxp/ |
D | clk-lpc18xx-ccu.c | 118 struct lpc18xx_branch_clk_data *clk_data = data; in lpc18xx_ccu_branch_clk_get() local 126 for (j = 0; j < clk_data->num; j++) { in lpc18xx_ccu_branch_clk_get() 127 if (!strcmp(clk_branches[i].base_name, clk_data->name[j])) in lpc18xx_ccu_branch_clk_get() 270 struct lpc18xx_branch_clk_data *clk_data; in lpc18xx_ccu_init() local 280 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); in lpc18xx_ccu_init() 281 if (!clk_data) { in lpc18xx_ccu_init() 286 clk_data->num = of_property_count_strings(np, "clock-names"); in lpc18xx_ccu_init() 287 clk_data->name = kcalloc(clk_data->num, sizeof(char *), GFP_KERNEL); in lpc18xx_ccu_init() 288 if (!clk_data->name) { in lpc18xx_ccu_init() 290 kfree(clk_data); in lpc18xx_ccu_init() [all …]
|
/Linux-v5.15/drivers/clk/mvebu/ |
D | common.c | 35 static struct clk_onecell_data clk_data; variable 121 clk_data.clk_num = 2 + desc->num_ratios; in mvebu_coreclk_setup() 125 clk_data.clk_num += 1; in mvebu_coreclk_setup() 127 clk_data.clks = kcalloc(clk_data.clk_num, sizeof(*clk_data.clks), in mvebu_coreclk_setup() 129 if (WARN_ON(!clk_data.clks)) { in mvebu_coreclk_setup() 138 clk_data.clks[0] = clk_register_fixed_rate(NULL, tclk_name, NULL, 0, in mvebu_coreclk_setup() 140 WARN_ON(IS_ERR(clk_data.clks[0])); in mvebu_coreclk_setup() 151 clk_data.clks[1] = clk_register_fixed_rate(NULL, cpuclk_name, NULL, 0, in mvebu_coreclk_setup() 153 WARN_ON(IS_ERR(clk_data.clks[1])); in mvebu_coreclk_setup() 163 clk_data.clks[2+n] = clk_register_fixed_factor(NULL, rclk_name, in mvebu_coreclk_setup() [all …]
|
/Linux-v5.15/drivers/clk/samsung/ |
D | clk-exynos-audss.c | 23 static struct clk_hw_onecell_data *clk_data; variable 108 if (!IS_ERR(clk_data->hws[i])) in exynos_audss_clk_teardown() 109 clk_hw_unregister_mux(clk_data->hws[i]); in exynos_audss_clk_teardown() 113 if (!IS_ERR(clk_data->hws[i])) in exynos_audss_clk_teardown() 114 clk_hw_unregister_divider(clk_data->hws[i]); in exynos_audss_clk_teardown() 117 for (; i < clk_data->num; i++) { in exynos_audss_clk_teardown() 118 if (!IS_ERR(clk_data->hws[i])) in exynos_audss_clk_teardown() 119 clk_hw_unregister_gate(clk_data->hws[i]); in exynos_audss_clk_teardown() 147 clk_data = devm_kzalloc(dev, in exynos_audss_clk_probe() 148 struct_size(clk_data, hws, in exynos_audss_clk_probe() [all …]
|