Skip to content

Commit 6142371

Browse files
committed
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: c8ae9c2 ("reset: Add support for resets provided by SCMI") Acked-by: Philipp Zabel <[email protected]> Reported-by: Etienne Carriere <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
1 parent 11ed5cf commit 6142371

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/reset/reset-scmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ static int scmi_reset_probe(struct scmi_device *sdev)
102102
data->rcdev.owner = THIS_MODULE;
103103
data->rcdev.of_node = np;
104104
data->rcdev.nr_resets = handle->reset_ops->num_domains_get(handle);
105+
data->handle = handle;
105106

106107
return devm_reset_controller_register(dev, &data->rcdev);
107108
}

0 commit comments

Comments
 (0)