mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 00:44:31 +01:00
Remove scpsys_get_legacy_regmap(), replacing its usage with
of_find_node_with_property(). Explicitly call of_node_get(np) before each
of_find_node_with_property() to maintain correct node reference counting.
The of_find_node_with_property() function "consumes" its input by calling
of_node_put() internally, whether or not it finds a match. Currently,
dev->of_node (np) is passed multiple times in sequence without incrementing
its reference count, causing it to be decremented multiple times and
risking early memory release.
Adding of_node_get(np) before each call balances the reference count,
preventing premature node release.
Fixes:
|
||
|---|---|---|
| .. | ||
| airoha-cpu-pmdomain.c | ||
| Kconfig | ||
| Makefile | ||
| mt6735-pm-domains.h | ||
| mt6795-pm-domains.h | ||
| mt6893-pm-domains.h | ||
| mt8167-pm-domains.h | ||
| mt8173-pm-domains.h | ||
| mt8183-pm-domains.h | ||
| mt8186-pm-domains.h | ||
| mt8188-pm-domains.h | ||
| mt8192-pm-domains.h | ||
| mt8195-pm-domains.h | ||
| mt8196-pm-domains.h | ||
| mt8365-pm-domains.h | ||
| mtk-mfg-pmdomain.c | ||
| mtk-pm-domains.c | ||
| mtk-pm-domains.h | ||
| mtk-scpsys.c | ||