OSDN Git Service

remoteproc: qcom_wcnss: Fix circular module dependency
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 4 Nov 2016 02:37:25 +0000 (19:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 19:18:06 +0000 (20:18 +0100)
commit0e38a0b7acbb8d046c7312ae8cb1e98951934226
treef0bd58e47a4f1c31a30abba6867288f73957c9b4
parentb4a69e3877ca10318a7a12296524e92a79a6eea3
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>
drivers/remoteproc/Kconfig
drivers/remoteproc/Makefile
drivers/remoteproc/qcom_wcnss.c
drivers/remoteproc/qcom_wcnss.h
drivers/remoteproc/qcom_wcnss_iris.c