]> git.baikalelectronics.ru Git - kernel.git/commitdiff
iommu/of: Delete usage of driver_deferred_probe_check_state()
authorSaravana Kannan <saravanak@google.com>
Wed, 1 Jun 2022 07:07:04 +0000 (00:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 13:57:54 +0000 (15:57 +0200)
Now that fw_devlink=on and fw_devlink.strict=1 by default and fw_devlink
supports iommu DT properties, 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>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20220601070707.3946847-9-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/of_iommu.c

index 5696314ae69e7d23b5ef7f71382bf95c5bda0bd7..41f4eb005219268818f57765ce25e9164b645669 100644 (file)
@@ -40,7 +40,7 @@ static int of_iommu_xlate(struct device *dev,
         * a proper probe-ordering dependency mechanism in future.
         */
        if (!ops)
-               return driver_deferred_probe_check_state(dev);
+               return -ENODEV;
 
        if (!try_module_get(ops->owner))
                return -ENODEV;