Lines Matching refs:hw_tbg_data
84 struct clk_hw_onecell_data *hw_tbg_data; in armada_3700_tbg_clock_probe() local
92 hw_tbg_data = devm_kzalloc(&pdev->dev, in armada_3700_tbg_clock_probe()
93 struct_size(hw_tbg_data, hws, NUM_TBG), in armada_3700_tbg_clock_probe()
95 if (!hw_tbg_data) in armada_3700_tbg_clock_probe()
97 hw_tbg_data->num = NUM_TBG; in armada_3700_tbg_clock_probe()
98 platform_set_drvdata(pdev, hw_tbg_data); in armada_3700_tbg_clock_probe()
120 hw_tbg_data->hws[i] = clk_hw_register_fixed_factor(NULL, name, in armada_3700_tbg_clock_probe()
122 if (IS_ERR(hw_tbg_data->hws[i])) in armada_3700_tbg_clock_probe()
126 ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, hw_tbg_data); in armada_3700_tbg_clock_probe()
134 struct clk_hw_onecell_data *hw_tbg_data = platform_get_drvdata(pdev); in armada_3700_tbg_clock_remove() local
137 for (i = 0; i < hw_tbg_data->num; i++) in armada_3700_tbg_clock_remove()
138 clk_hw_unregister_fixed_factor(hw_tbg_data->hws[i]); in armada_3700_tbg_clock_remove()