diff --git a/drivers/clk/qcom/common.h b/drivers/clk/qcom/common.h index 6a2a85f3eab1..0c8f5a0dd7d1 100644 --- a/drivers/clk/qcom/common.h +++ b/drivers/clk/qcom/common.h @@ -84,4 +84,9 @@ int qcom_cc_runtime_init(struct platform_device *pdev, int qcom_cc_runtime_suspend(struct device *dev); int qcom_cc_runtime_resume(struct device *dev); +static inline const char *qcom_clk_hw_get_name(const struct clk_hw *hw) +{ + return hw->init ? hw->init->name : clk_hw_get_name(hw); +} + #endif