]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: Refactor sysfs connection group cleanup
authorLeo Yan <leo.yan@arm.com>
Mon, 9 Feb 2026 12:44:37 +0000 (12:44 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 25 Feb 2026 11:14:44 +0000 (11:14 +0000)
commitbabb987968d3610f8953f24b26154bf03c169811
tree3281760359adb874cb1bab1c6aa441f28503aa16
parent32c225491ed8dc90c9ba4a8d07f064133d52a179
coresight: Refactor sysfs connection group cleanup

Move the sysfs connection group cleanup into coresight_remove_conns(),
so that the driver removes connections and related sysfs resources in
one go.

As side effect, the csdev argument to coresight_release_platform_data()
is no longer needed; adjust the code for this.

Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20260209-arm_coresight_refactor_dev_register-v4-5-62d6042f76f7@arm.com
drivers/hwtracing/coresight/coresight-core.c
drivers/hwtracing/coresight/coresight-platform.c
drivers/hwtracing/coresight/coresight-priv.h