]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
coresight: Cleanup coresight_remove_conns
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 19 Jun 2019 19:52:58 +0000 (13:52 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Jun 2019 05:56:12 +0000 (07:56 +0200)
commitd2998dc1f9b14d19f886d8f75ca47c5806635902
tree65d2c76e12c6322709ca14f5c188c9ce3aaa8ed3
parent2ede79a6e8a541d1bc7c033b1198f05088e7cefb
coresight: Cleanup coresight_remove_conns

When a device is unregistered, we remove all connection
references to it, by searching the connection records of
all devices in the coresight bus, via coresight_remove_conns.
We could avoid searching if this device doesn't have an input
port (e.g, a source). Also document the purpose of the function.

Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight.c