diff options
author | Arend van Spriel <arend@broadcom.com> | 2015-10-15 12:14:19 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2015-11-07 16:33:28 +0100 |
commit | 9a7c488fb8027028f6c76b026ae2cee45806f0af (patch) | |
tree | 790a58faa48eda0ba0c09efb559b93df6eed559e | |
parent | 0f7130e29b91ce165c48a1285b960d335a314fb2 (diff) |
backports: add backport for of_platform_default_populate()
Since commit 69b5f4da2636 ("bcma: add support for population subnodes
also when build as module") the bcma driver uses the function
of_platform_default_populate(). This patch provides the stub function.
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | backport/backport-include/linux/of_platform.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/backport/backport-include/linux/of_platform.h b/backport/backport-include/linux/of_platform.h index 7b0e9062..3d83f4a5 100644 --- a/backport/backport-include/linux/of_platform.h +++ b/backport/backport-include/linux/of_platform.h @@ -20,4 +20,17 @@ static inline int of_platform_populate(struct device_node *root, extern const struct of_device_id of_default_bus_match_table[]; #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,11,0) */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0) && !defined(CONFIG_OF_DEVICE) +struct of_dev_auxdata; +#define of_platform_default_populate \ + LINUX_BACKPORT(of_platform_default_populate) +static inline int +of_platform_default_populate(struct device_node *root, + const struct of_dev_auxdata *lookup, + struct device *parent) +{ + return -ENODEV; +} +#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0) */ + #endif /* __BACKPORT_LINUX_OF_PLATFORM_H */ |