diff options
| author | Li Ming <ming4.li@intel.com> | 2024-08-30 04:31:36 +0300 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2024-09-04 00:49:48 +0300 |
| commit | dd2617ebd2a69c012001a29274557199409eff39 (patch) | |
| tree | af920666eeaa7f0219eddcf7898a8425d7c1160f /drivers/fpga/tests/fpga-bridge-test.c | |
| parent | fa724cd747cdc347cde0d2ef6ba4ee34344f72cb (diff) | |
| download | linux-dd2617ebd2a69c012001a29274557199409eff39.tar.xz | |
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 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions
