From 8d0582984f2c4061ba67ae24a489210e93a476e6 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 30 Dec 2024 11:15:20 +0000 Subject: [PATCH] Revert "device property: Add cleanup.h based fwnode_handle_put() scope based cleanup." This reverts commit da1097f8d9398b49b3c44cfab517a169266692e8 which is commit 59ed5e2d505bf5f9b4af64d0021cd0c96aec1f7c upstream. It breaks the Android kernel abi and can be brought back in the future in an abi-safe way if it is really needed. Bug: 161946584 Change-Id: I66b99de3aa72fc7123d648a01767cf871e64a25b Signed-off-by: Greg Kroah-Hartman --- include/linux/property.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/property.h b/include/linux/property.h index fea9d2a70de8..8a30136c2875 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -11,7 +11,6 @@ #define _LINUX_PROPERTY_H_ #include -#include #include #include @@ -125,8 +124,6 @@ struct fwnode_handle *device_get_named_child_node(const struct device *dev, struct fwnode_handle *fwnode_handle_get(struct fwnode_handle *fwnode); void fwnode_handle_put(struct fwnode_handle *fwnode); -DEFINE_FREE(fwnode_handle, struct fwnode_handle *, fwnode_handle_put(_T)) - int fwnode_irq_get(const struct fwnode_handle *fwnode, unsigned int index); int fwnode_irq_get_byname(const struct fwnode_handle *fwnode, const char *name);