diff options
author | Mike Tipton <mdtipton@codeaurora.org> | 2021-06-21 23:42:41 +0200 |
---|---|---|
committer | Georgi Djakov <djakov@kernel.org> | 2021-07-22 09:05:24 +0200 |
commit | 789a39ad39bc7ff24fe16f80326a6e38f047f10b (patch) | |
tree | 2f3157c2334699bccaf216df2e90578479fa50f8 /drivers/interconnect/qcom/icc-rpmh.h | |
parent | Linux 5.14-rc1 (diff) | |
download | linux-789a39ad39bc7ff24fe16f80326a6e38f047f10b.tar.xz linux-789a39ad39bc7ff24fe16f80326a6e38f047f10b.zip |
interconnect: qcom: icc-rpmh: Consolidate probe functions
The current probe/remove functions are implemented separately for each
target, but they are almost identical. Replace them with common
functions that can be used across all rpmh targets.
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Link: https://lore.kernel.org/r/20210621214241.13521-1-mdtipton@codeaurora.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'drivers/interconnect/qcom/icc-rpmh.h')
-rw-r--r-- | drivers/interconnect/qcom/icc-rpmh.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/interconnect/qcom/icc-rpmh.h b/drivers/interconnect/qcom/icc-rpmh.h index e5f61ab989e7..4bfc060529ba 100644 --- a/drivers/interconnect/qcom/icc-rpmh.h +++ b/drivers/interconnect/qcom/icc-rpmh.h @@ -134,5 +134,7 @@ int qcom_icc_set(struct icc_node *src, struct icc_node *dst); struct icc_node_data *qcom_icc_xlate_extended(struct of_phandle_args *spec, void *data); int qcom_icc_bcm_init(struct qcom_icc_bcm *bcm, struct device *dev); void qcom_icc_pre_aggregate(struct icc_node *node); +int qcom_icc_rpmh_probe(struct platform_device *pdev); +int qcom_icc_rpmh_remove(struct platform_device *pdev); #endif |