Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "of/platform: Add stubs for of_platform_device_create/destroy()"

This reverts commit 412981e06294dac3254d83bbf71d4184ea911d05 as the
patch series is causing build issues in linux-next at the moment.

Cc: Matthias Kaehlcke <mka@chromium.org>
Link: https://lore.kernel.org/r/YMuRcrE8xlWnFSWW@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+4 -18
+4 -18
include/linux/of_platform.h
··· 61 61 } 62 62 #endif 63 63 64 - extern int of_platform_bus_probe(struct device_node *root, 65 - const struct of_device_id *matches, 66 - struct device *parent); 67 - 68 - #ifdef CONFIG_OF_ADDRESS 69 64 /* Platform devices and busses creation */ 70 65 extern struct platform_device *of_platform_device_create(struct device_node *np, 71 66 const char *bus_id, 72 67 struct device *parent); 73 68 74 69 extern int of_platform_device_destroy(struct device *dev, void *data); 75 - 70 + extern int of_platform_bus_probe(struct device_node *root, 71 + const struct of_device_id *matches, 72 + struct device *parent); 73 + #ifdef CONFIG_OF_ADDRESS 76 74 extern int of_platform_populate(struct device_node *root, 77 75 const struct of_device_id *matches, 78 76 const struct of_dev_auxdata *lookup, ··· 84 86 85 87 extern void devm_of_platform_depopulate(struct device *dev); 86 88 #else 87 - /* Platform devices and busses creation */ 88 - static inline struct platform_device *of_platform_device_create(struct device_node *np, 89 - const char *bus_id, 90 - struct device *parent) 91 - { 92 - return NULL; 93 - } 94 - static inline int of_platform_device_destroy(struct device *dev, void *data) 95 - { 96 - return -ENODEV; 97 - } 98 - 99 89 static inline int of_platform_populate(struct device_node *root, 100 90 const struct of_device_id *matches, 101 91 const struct of_dev_auxdata *lookup,