From 26d482a324e303bfea8a60c640ef0232f1cf24d5 Mon Sep 17 00:00:00 2001 From: Jacob Chen Date: Mon, 28 Aug 2017 14:23:49 +0800 Subject: [PATCH] ACPI: add dummy acpi_node_get_parent to pass compile Complete version in dfa672fbc0d9e83ff0dc1a75f1f5d0e59a30706b Change-Id: I93f7a3fe299866295eb7a986e5e39cd8819772e0 Signed-off-by: Jacob Chen --- include/linux/acpi.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 7ea302cb0834..b253889aa4c4 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -812,6 +812,7 @@ int acpi_dev_prop_read(struct acpi_device *adev, const char *propname, struct fwnode_handle *acpi_get_next_subnode(struct device *dev, struct fwnode_handle *subnode); +struct fwnode_handle *acpi_node_get_parent(struct fwnode_handle *fwnode); struct acpi_probe_entry; typedef bool (*acpi_probe_entry_validate_subtbl)(struct acpi_subtable_header *, @@ -926,6 +927,12 @@ static inline struct fwnode_handle *acpi_get_next_subnode(struct device *dev, return NULL; } +static inline struct fwnode_handle * +acpi_node_get_parent(struct fwnode_handle *fwnode) +{ + return NULL; +} + #define ACPI_DECLARE_PROBE_ENTRY(table, name, table_id, subtable, valid, data, fn) \ static const void * __acpi_table_##name[] \ __attribute__((unused)) \