diff options
author | Li Ming <ming4.li@intel.com> | 2024-08-30 01:31:36 +0000 |
---|---|---|
committer | Dave Jiang <dave.jiang@intel.com> | 2024-09-03 14:49:48 -0700 |
commit | dd2617ebd2a69c012001a29274557199409eff39 (patch) | |
tree | af920666eeaa7f0219eddcf7898a8425d7c1160f /tools/perf/scripts/python/export-to-sqlite.py | |
parent | fa724cd747cdc347cde0d2ef6ba4ee34344f72cb (diff) |
cxl/port: Use __free() to drop put_device() for cxl_port
Using scope-based resource management __free() marco with a new helper
called put_cxl_port() to drop open coded the put_device() used to
dereference the 'struct device' in cxl_port.
Suggested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Li Ming <ming4.li@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://patch.msgid.link/20240830013138.2256244-1-ming4.li@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions