Lines Matching refs:hw_tbg_data
84 struct clk_hw_onecell_data *hw_tbg_data; in armada_3700_tbg_clock_probe() local
91 hw_tbg_data = devm_kzalloc(&pdev->dev, in armada_3700_tbg_clock_probe()
92 struct_size(hw_tbg_data, hws, NUM_TBG), in armada_3700_tbg_clock_probe()
94 if (!hw_tbg_data) in armada_3700_tbg_clock_probe()
96 hw_tbg_data->num = NUM_TBG; in armada_3700_tbg_clock_probe()
97 platform_set_drvdata(pdev, hw_tbg_data); in armada_3700_tbg_clock_probe()
118 hw_tbg_data->hws[i] = clk_hw_register_fixed_factor(NULL, name, in armada_3700_tbg_clock_probe()
120 if (IS_ERR(hw_tbg_data->hws[i])) in armada_3700_tbg_clock_probe()
124 return of_clk_add_hw_provider(np, of_clk_hw_onecell_get, hw_tbg_data); in armada_3700_tbg_clock_probe()
130 struct clk_hw_onecell_data *hw_tbg_data = platform_get_drvdata(pdev); in armada_3700_tbg_clock_remove() local
133 for (i = 0; i < hw_tbg_data->num; i++) in armada_3700_tbg_clock_remove()
134 clk_hw_unregister_fixed_factor(hw_tbg_data->hws[i]); in armada_3700_tbg_clock_remove()