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>
This commit is contained in:
parent
3bc11b983d
commit
d6332d59d2
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue