|
@@ -40,6 +40,7 @@ struct dt_ops {
|
|
|
const int buflen);
|
|
|
int (*setprop)(const void *phandle, const char *name,
|
|
|
const void *buf, const int buflen);
|
|
|
+ int (*del_node)(const void *phandle);
|
|
|
void *(*get_parent)(const void *phandle);
|
|
|
/* The node must not already exist. */
|
|
|
void *(*create_node)(const void *parent, const char *name);
|
|
@@ -126,6 +127,11 @@ static inline int setprop_str(void *devp, const char *name, const char *buf)
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
|
+static inline int del_node(const void *devp)
|
|
|
+{
|
|
|
+ return dt_ops.del_node ? dt_ops.del_node(devp) : -1;
|
|
|
+}
|
|
|
+
|
|
|
static inline void *get_parent(const char *devp)
|
|
|
{
|
|
|
return dt_ops.get_parent ? dt_ops.get_parent(devp) : NULL;
|