diff options
| author | Jonas Karlman <[email protected]> | 2024-07-24 22:47:11 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-09-25 08:54:03 -0600 |
| commit | 4386ab9118e7b405829fbcb3bbbaf2f47ddf0b44 (patch) | |
| tree | 4c8cdacc3256876bd1afbece4b93c1de33d32cbb /include | |
| parent | f417c14d88fec5757dbf3cd6af6f7f2ddb99595f (diff) | |
power: regulator: Consistently return -ENOSYS when ops is unimplemented
dev_get_driver_ops() may return NULL when the udevice is invalid.
Move the ops check to top of functions to consistently return -ENOSYS
when ops is unimplemented and prevent trying to access uclass plat data,
also add missing NULL checks to suspend ops.
Signed-off-by: Jonas Karlman <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
