diff options
author | 2024-10-17 23:34:49 +0800 | |
---|---|---|
committer | 2025-01-12 20:20:58 -0800 | |
commit | 1e1857230c4879ae6ec37e1dbcbf6ce6217056b5 (patch) | |
tree | a6a0572cda2adbdba190c97215adc4559b259803 /lib/test_xarray.c | |
parent | xarray: extract helper from __xa_{insert,cmpxchg} (diff) | |
download | wireguard-linux-1e1857230c4879ae6ec37e1dbcbf6ce6217056b5.tar.xz wireguard-linux-1e1857230c4879ae6ec37e1dbcbf6ce6217056b5.zip |
kernel/resource: simplify API __devm_release_region() implementation
Simplify __devm_release_region() implementation by dedicated API
devres_release() which have below advantages than current
__release_region() + devres_destroy():
It is simpler if __devm_release_region() is undoing what
__devm_request_region() did, otherwise, it can avoid wrong and undesired
__release_region().
Link: https://lkml.kernel.org/r/20241017-release_region_fix-v1-1-84a3e8441284@quicinc.com
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions