[v3,02/14] clk: hisilicon: Rename hisi_clk_unregister macro
Commit Message
hisi_clk_unregister is not a function corresponding to hisi_clk_register,
rename it to avoid misunderstanding.
Signed-off-by: David Yang <mmyangfl@gmail.com>
---
drivers/clk/hisilicon/clk.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
@@ -179,7 +179,7 @@ int hisi_clk_early_init(struct device_node *np, const struct hisi_clocks *clks);
int hisi_clk_probe(struct platform_device *pdev);
int hisi_clk_remove(struct platform_device *pdev);
-#define hisi_clk_unregister(type) \
+#define hisi_clk_unregister_fn(type) \
static inline \
void hisi_clk_unregister_##type(const struct hisi_##type##_clock *clks, \
int nums, struct hisi_clock_data *data) \
@@ -193,10 +193,10 @@ void hisi_clk_unregister_##type(const struct hisi_##type##_clock *clks, \
} \
}
-hisi_clk_unregister(fixed_rate)
-hisi_clk_unregister(fixed_factor)
-hisi_clk_unregister(mux)
-hisi_clk_unregister(divider)
-hisi_clk_unregister(gate)
+hisi_clk_unregister_fn(fixed_rate)
+hisi_clk_unregister_fn(fixed_factor)
+hisi_clk_unregister_fn(mux)
+hisi_clk_unregister_fn(divider)
+hisi_clk_unregister_fn(gate)
#endif /* __HISI_CLK_H */