reset_source_set_device is given a device pointer as argument and it passes it to __reset_source_set, but the latter function discards the argument and unconditionally stores a NULL into the reset_source_device. Fix this by actually making use of the argument. Fixes: a0748840c104 ("reset_source: implement helper to set a device as reset source") Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- v1 -> v2: - no change --- common/reset_source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/reset_source.c b/common/reset_source.c index f28be90dcbb4..495f3d527a84 100644 --- a/common/reset_source.c +++ b/common/reset_source.c @@ -61,7 +61,7 @@ static void __reset_source_set(struct device *dev, reset_source = st; reset_source_priority = priority; reset_source_instance = instance; - reset_source_device = NULL; + reset_source_device = dev; pr_debug("Setting reset source to %s with priority %d\n", reset_src_names[reset_source], priority); -- 2.39.5