commit | a7c6f6b277220b4b7c93ce5fd50ba4e0031eb4d2 | [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 | c3c84ad7770360f152167c6c8076b1aacf3f4310 [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>