]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
simple-pm-bus: Use -ENOSYS for checking missing system call
authorSimon Glass <sjg@chromium.org>
Wed, 24 Mar 2021 21:26:10 +0000 (10:26 +1300)
committerSimon Glass <sjg@chromium.org>
Tue, 6 Apr 2021 04:33:19 +0000 (16:33 +1200)
We don't need to check -ENOTSUPP since this is not used for this purpose
in U-Boot. Update the code accordingly.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
drivers/core/simple-pm-bus.c

index 7a18953cba127910409e5ba1f1ae55f502f4bcbb..1bb0d86e289dc1bea90ffcb93c051afc7fa1ddc8 100644 (file)
@@ -21,7 +21,7 @@ static int simple_pm_bus_probe(struct udevice *dev)
                return ret;
 
        ret = clk_enable_bulk(bulk);
-       if (ret && ret != -ENOSYS && ret != -ENOTSUPP) {
+       if (ret && ret != -ENOSYS) {
                clk_release_bulk(bulk);
                return ret;
        }
@@ -34,7 +34,7 @@ static int simple_pm_bus_remove(struct udevice *dev)
        struct clk_bulk *bulk = dev_get_priv(dev);
 
        ret = clk_release_bulk(bulk);
-       if (ret && ret != -ENOSYS && ret != -ENOTSUPP)
+       if (ret && ret != -ENOSYS)
                return ret;
        else
                return 0;