pr_err("ERROR: memory leak, expected refcount 1 instead of %d, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node %pOF\n",
#define pr_fmt(fmt) "OF: " fmt
#include <linux/spinlock.h>
#include <linux/string.h>
#include <linux/proc_fs.h>
static struct device_node *kobj_to_device_node(struct kobject *kobj)
return container_of(kobj, struct device_node, kobj);
struct device_node *of_node_get(struct device_node *node)
kobject_get(&node->kobj);
EXPORT_SYMBOL(of_node_get);
void of_node_put(struct device_node *node)
kobject_put(&node->kobj);
EXPORT_SYMBOL(of_node_put);
static BLOCKING_NOTIFIER_HEAD(of_reconfig_chain);
int of_reconfig_notifier_register(struct notifier_block *nb)
return blocking_notifier_chain_register(&of_reconfig_chain, nb);
EXPORT_SYMBOL_GPL(of_reconfig_notifier_register);
int of_reconfig_notifier_unregister(struct notifier_block *nb)
return blocking_notifier_chain_unregister(&of_reconfig_chain, nb);