]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cxl/mem: Drop @host argument to devm_cxl_add_memdev()
authorDan Williams <dan.j.williams@intel.com>
Tue, 16 Dec 2025 00:56:15 +0000 (16:56 -0800)
committerDave Jiang <dave.jiang@intel.com>
Mon, 5 Jan 2026 17:14:53 +0000 (10:14 -0700)
commitf2546eba53bbe38c4bb950f78625ccf4b1a2cbc8
treef8017149e13c844e95039831fb71fdfa17bbdbf5
parent6e1d21903ff213f1384ce43daa279c0965904116
cxl/mem: Drop @host argument to devm_cxl_add_memdev()

In all cases the device that created the 'struct cxl_dev_state' instance is
also the device to host the devm cleanup of devm_cxl_add_memdev(). This
simplifies the function prototype, and limits a degree of freedom of the
API.

Cc: Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Ben Cheatham <benjamin.cheatham@amd.com>
Tested-by: Alejandro Lucero <alucerop@amd.com>
Link: https://patch.msgid.link/20251216005616.3090129-6-dan.j.williams@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/memdev.c
drivers/cxl/cxlmem.h
drivers/cxl/mem.c
drivers/cxl/pci.c
tools/testing/cxl/test/mem.c