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)
commitd6332d59d25c26b9f21e04792686c4989a9382a4
treedbc713e21cd941ae020a6b9e02125b5f49d11e17
parent3bc11b983d01e8b761cfeafa60d520b5702f7d10
simple-pm-bus: Use -ENOSYS for checking missing system call

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