Skip to content

Commit 5a46079

Browse files
Saravana Kannangregkh
authored andcommitted
PM: domains: Delete usage of driver_deferred_probe_check_state()
Now that fw_devlink=on by default and fw_devlink supports "power-domains" property, the execution will never get to the point where driver_deferred_probe_check_state() is called before the supplier has probed successfully or before deferred probe timeout has expired. So, delete the call and replace it with -ENODEV. Tested-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Ulf Hansson <[email protected]> Signed-off-by: Saravana Kannan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f2906aa commit 5a46079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/power/domain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2730,7 +2730,7 @@ static int __genpd_dev_pm_attach(struct device *dev, struct device *base_dev,
27302730
mutex_unlock(&gpd_list_lock);
27312731
dev_dbg(dev, "%s() failed to find PM domain: %ld\n",
27322732
__func__, PTR_ERR(pd));
2733-
return driver_deferred_probe_check_state(base_dev);
2733+
return -ENODEV;
27342734
}
27352735

27362736
dev_dbg(dev, "adding to PM domain %s\n", pd->name);

0 commit comments

Comments
 (0)