diff options
| author | Zijun Hu <[email protected]> | 2024-10-17 15:34:49 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-01-13 04:20:58 +0000 |
| commit | 1e1857230c4879ae6ec37e1dbcbf6ce6217056b5 (patch) | |
| tree | a6a0572cda2adbdba190c97215adc4559b259803 /lib/test_xarray.c | |
| parent | xarray: extract helper from __xa_{insert,cmpxchg} (diff) | |
| download | kernel-1e1857230c4879ae6ec37e1dbcbf6ce6217056b5.tar.gz kernel-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/[email protected]
Signed-off-by: Zijun Hu <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Ilpo Järvinen <[email protected]>
Cc: Mika Westerberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions
