diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2019-09-09 17:21:07 +0200 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2019-09-18 14:42:44 +0200 |
commit | 61423712dbb86e02af4aa5de65b9041493c92cac (patch) | |
tree | 178b50523fe5781b756093af7025bc38dd0d267f | |
parent | firmware: arm_scmi: reset: fix reset_state assignment in scmi_domain_reset (diff) | |
download | linux-61423712dbb86e02af4aa5de65b9041493c92cac.tar.xz linux-61423712dbb86e02af4aa5de65b9041493c92cac.zip |
reset: reset-scmi: add missing handle initialisation
scmi_reset_data->handle needs to be initialised at probe, so that it
can be later used to access scmi reset protocol APIs using the same.
Since it was tested with a module that obtained handle elsewhere,
it was missed easily. Add the missing scmi_reset_data->handle
initialisation to fix the issue.
Fixes: c8ae9c2da1cc ("reset: Add support for resets provided by SCMI")
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Reported-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
-rw-r--r-- | drivers/reset/reset-scmi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/reset/reset-scmi.c b/drivers/reset/reset-scmi.c index c6d3c8427f14..b46df80ec6c3 100644 --- a/drivers/reset/reset-scmi.c +++ b/drivers/reset/reset-scmi.c @@ -102,6 +102,7 @@ static int scmi_reset_probe(struct scmi_device *sdev) data->rcdev.owner = THIS_MODULE; data->rcdev.of_node = np; data->rcdev.nr_resets = handle->reset_ops->num_domains_get(handle); + data->handle = handle; return devm_reset_controller_register(dev, &data->rcdev); } |