diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-11-04 05:37:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-19 22:18:06 +0300 |
commit | 0e38a0b7acbb8d046c7312ae8cb1e98951934226 (patch) | |
tree | f0bd58e47a4f1c31a30abba6867288f73957c9b4 /drivers/remoteproc/qcom_wcnss.h | |
parent | b4a69e3877ca10318a7a12296524e92a79a6eea3 (diff) | |
download | linux-0e38a0b7acbb8d046c7312ae8cb1e98951934226.tar.xz |
remoteproc: qcom_wcnss: Fix circular module dependency
commit 6de1a507c46bf22ed97043495b9ab96e4d5c213b upstream.
The tie between the main WCNSS driver and the IRIS driver causes a
circular dependency between the two modules. Neither part makes sense to
have on their own so lets merge them into one module.
For the sake of picking up the clock and regulator resources described
in the iris of_node we need an associated struct device. But, to keep
the size of the patch down we continue to represent the IRIS part as its
own platform_driver, within the same module, rather than setting up a
dummy device.
Fixes: aed361adca9f ("remoteproc: qcom: Introduce WCNSS peripheral image loader")
Reported-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/remoteproc/qcom_wcnss.h')
-rw-r--r-- | drivers/remoteproc/qcom_wcnss.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/remoteproc/qcom_wcnss.h b/drivers/remoteproc/qcom_wcnss.h index 9dc4a9fe41e1..25fb7f62a457 100644 --- a/drivers/remoteproc/qcom_wcnss.h +++ b/drivers/remoteproc/qcom_wcnss.h @@ -4,6 +4,8 @@ struct qcom_iris; struct qcom_wcnss; +extern struct platform_driver qcom_iris_driver; + struct wcnss_vreg_info { const char * const name; int min_voltage; |