commit | 4386ab9118e7b405829fbcb3bbbaf2f47ddf0b44 | [log] [tgz] |
---|---|---|
author | Jonas Karlman <jonas@kwiboo.se> | Wed Jul 24 22:47:11 2024 +0000 |
committer | Tom Rini <trini@konsulko.com> | Wed Sep 25 08:54:03 2024 -0600 |
tree | 4c8cdacc3256876bd1afbece4b93c1de33d32cbb | |
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 <jonas@kwiboo.se>