summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorStepan Ionichev <sozdayvek@gmail.com>2026-05-13 12:09:00 +0300
committerSudeep Holla <sudeep.holla@kernel.org>2026-05-14 14:15:38 +0300
commitb79d9b5747d961516c35ef4d5e91efa579fd3e9a (patch)
treeea5e6093f59d8c1d7ca90cced32cd8e2ffd84553 /include/linux
parentd2488ff1a257342111e1be1348d52e8b4ecfaa36 (diff)
downloadlinux-b79d9b5747d961516c35ef4d5e91efa579fd3e9a.tar.xz
clk: scpi: Unregister child clock providers on remove
SCPI clock providers are registered for each child node in scpi_clk_add(), but scpi_clocks_remove() unregisters the parent node on each iteration. of_clk_del_provider() matches providers by the node used at registration time, so passing the parent node leaves the child providers registered. This leaks the provider allocations and the node references held by the clock provider core. Pass the child node to of_clk_del_provider() so the remove path matches the probe path. Fixes: cd52c2a4b5c4 ("clk: add support for clocks provided by SCP(System Control Processor)") Signed-off-by: Stepan Ionichev <sozdayvek@gmail.com> Link: https://patch.msgid.link/20260513090900.5323-1-sozdayvek@gmail.com (sudeep.holla: Updated commit title and message a bit) Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions