mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 08:47:51 +04:00
dev_pm_domain_attach_list() returns the number of attached PM domains on success (a positive count), or a negative error code on failure. The airoha-cpufreq driver checks 'if (ret)' which treats a successful attachment as an error. Fix by checking 'if (ret < 0)' like all other users of this API. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>