]> git.baikalelectronics.ru Git - uboot.git/commit
pinctrl: Return -ENOSYS when system call is not available
authorSimon Glass <sjg@chromium.org>
Wed, 24 Mar 2021 21:26:11 +0000 (10:26 +1300)
committerSimon Glass <sjg@chromium.org>
Tue, 6 Apr 2021 04:33:19 +0000 (16:33 +1200)
commiteb5301b9cbb513fcc318aa67d7e8433b472eacac
treeea1ed5badfce825b12e3c43718a76e0dc6a734e5
parentf314d3f714795ffc6ee9865633f785efa6629afa
pinctrl: Return -ENOSYS when system call is not available

Update the code to use -ENOSYS, which is the correct error code for an
unimplemented system call in U-Boot.

Also we should not check for a missing operations array as this is not
permitted. For now this can be covered by an assert().

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/pinctrl/pinctrl-uclass.c