]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cxl/port: Cleanup dport removal with a devres group
authorDan Williams <dan.j.williams@intel.com>
Sat, 31 Jan 2026 00:03:57 +0000 (16:03 -0800)
committerDave Jiang <dave.jiang@intel.com>
Mon, 2 Feb 2026 15:41:29 +0000 (08:41 -0700)
commitafa2bdba1ee28e21f30fe5391b0273b58b32e0d3
treea6ef12235c5e7d79362dd8f3a2a8ffa153797be8
parent83ccbaf1a1075ded82329d27de01d3b2681986ec
cxl/port: Cleanup dport removal with a devres group

In preparation for adding more setup actions like RAS register mapping,
introduce a devres group to collect all the dport creation / registration
actions. This replaces the maintenance tedium of open coding several
devm_release_action() calls in del_dport().

Tested-by: Terry Bowman <terry.bowman@amd.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/20260131000403.2135324-4-dan.j.williams@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/port.c