summaryrefslogtreecommitdiffstats
path: root/include/device.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-24 09:27:27 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-10-14 16:41:40 +1100
commit8110b0595f0de2df18a06e8e9aff66db45872fa7 (patch)
treeff54e7925858b8eca4b87773247b54b34e0fa8bb /include/device.h
parentbdd34cca13be8ac075657b3981f6db91f7dab0ae (diff)
downloadblackbird-skiboot-8110b0595f0de2df18a06e8e9aff66db45872fa7.tar.gz
blackbird-skiboot-8110b0595f0de2df18a06e8e9aff66db45872fa7.zip
device: Add helper to delete a property by name if it exists
This will be useful for fast reboot which needs to clean a few things up. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/device.h')
-rw-r--r--include/device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/device.h b/include/device.h
index ed4fc460..4198a41c 100644
--- a/include/device.h
+++ b/include/device.h
@@ -119,6 +119,8 @@ static inline struct dt_property *dt_add_property_u64(struct dt_node *node,
void dt_del_property(struct dt_node *node, struct dt_property *prop);
+void dt_check_del_prop(struct dt_node *node, const char *name);
+
/* Warning: moves *prop! */
void dt_resize_property(struct dt_property **prop, size_t len);
OpenPOWER on IntegriCloud