]> git.baikalelectronics.ru Git - kernel.git/commitdiff
PM: domains: Delete usage of driver_deferred_probe_check_state()
authorSaravana Kannan <saravanak@google.com>
Wed, 1 Jun 2022 07:06:57 +0000 (00:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 13:57:54 +0000 (15:57 +0200)
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 <geert+renesas@glider.be>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20220601070707.3946847-2-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/power/domain.c

index 739e52cd4aba5dd4b3c666ad9cbdf38120747cb5..3e86772d5fac5d3378c2505d48056e7eaeb2da37 100644 (file)
@@ -2730,7 +2730,7 @@ static int __genpd_dev_pm_attach(struct device *dev, struct device *base_dev,
                mutex_unlock(&gpd_list_lock);
                dev_dbg(dev, "%s() failed to find PM domain: %ld\n",
                        __func__, PTR_ERR(pd));
-               return driver_deferred_probe_check_state(base_dev);
+               return -ENODEV;
        }
 
        dev_dbg(dev, "adding to PM domain %s\n", pd->name);