summaryrefslogtreecommitdiff
path: root/drivers/acpi/tables.c
diff options
context:
space:
mode:
authorBen Horgan <ben.horgan@arm.com>2025-11-19 15:22:37 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2025-11-19 21:34:19 +0300
commitf5915600cc4ca0338a37d5a8a4032e25d939156b (patch)
treef9053a1deba59ab8b09af081a617950e44093d55 /drivers/acpi/tables.c
parentd8bf01d80919e81a06dca77556dcfb351fa99b0c (diff)
downloadlinux-f5915600cc4ca0338a37d5a8a4032e25d939156b.tar.xz
platform: Define platform_device_put cleanup handler
Define a cleanup helper for use with __free to destroy platform devices automatically when the pointer goes out of scope. This is only intended to be used in error cases and so should be used with return_ptr() or no_free_ptr() directly to avoid the automatic destruction on success. A first use of this is introduced in a subsequent commit. Reviewed-by: Gavin Shan <gshan@redhat.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Reviewed-by: Fenghua Yu <fenghuay@nvidia.com> Reviewed-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com> Tested-by: Fenghua Yu <fenghuay@nvidia.com> Tested-by: Carl Worth <carl@os.amperecomputing.com> Tested-by: Gavin Shan <gshan@redhat.com> Tested-by: Zeng Heng <zengheng4@huawei.com> Tested-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com> Tested-by: Hanjun Guo <guohanjun@huawei.com> Signed-off-by: Ben Horgan <ben.horgan@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'drivers/acpi/tables.c')
0 files changed, 0 insertions, 0 deletions