1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-04-11 20:20:01 +02:00
Files
u-boot-megous/drivers/power
Jonas Karlman 4386ab9118 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>
2024-09-25 08:54:03 -06:00
..
2024-07-23 10:37:48 -06:00
2024-08-13 06:14:55 +02:00