diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2024-10-25 10:54:55 +0300 |
---|---|---|
committer | Krzysztof Wilczyński <kwilczynski@kernel.org> | 2024-11-21 19:01:20 +0300 |
commit | 681725afb6b91dfa581f4eba5f256ac5e953b463 (patch) | |
tree | 376bb77a20c02df2236fdc70b5b5fbef0cbde45d /.rustfmt.toml | |
parent | b458ff7e8176523b9d5a8d33f2487f29d7096eb1 (diff) | |
download | linux-681725afb6b91dfa581f4eba5f256ac5e953b463.tar.xz |
PCI/pwrctl: Remove pwrctl device without iterating over all children of pwrctl parent
There is no need to iterate over all children of the pwrctl device parent
to remove the pwrctl device. Since the pwrctl device associated with the
PCI device can be found using of_find_device_by_node() API, use it directly
instead.
Any pwrctl devices lying around without getting associated with the PCI
devices will be removed once their parent device gets removed.
Link: https://lore.kernel.org/r/20241025-pci-pwrctl-rework-v2-5-568756156cbe@linaro.org
Tested-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tested-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
[bhelgaas: commit log]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to '.rustfmt.toml')
0 files changed, 0 insertions, 0 deletions