diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-06-14 23:23:00 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-06-16 20:23:38 +0200 |
commit | 85b9c4e29b11ef45cf81e1774b60a1b6e22efe2e (patch) | |
tree | 1d6fcd63b05451558cd838e8b534de9f13d5d26c | |
parent | 59de821df9ea030d6cd878aab371b7429ddee05f (diff) |
backports: add of_match_ptr()
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | backport/backport-include/linux/of.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/backport/backport-include/linux/of.h b/backport/backport-include/linux/of.h index 69664de7..f2a8ab47 100644 --- a/backport/backport-include/linux/of.h +++ b/backport/backport-include/linux/of.h @@ -106,4 +106,12 @@ static inline void of_node_put(struct device_node *node) { } #endif /* CONFIG_OF */ #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) */ +#ifndef of_match_ptr +#ifdef CONFIG_OF +#define of_match_ptr(_ptr) (_ptr) +#else +#define of_match_ptr(_ptr) NULL +#endif /* CONFIG_OF */ +#endif /* of_match_ptr */ + #endif /* _COMPAT_LINUX_OF_H */ |