mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
of: Move of_device_(add|register|unregister) to of_platform.h
As of_device_(add|register|unregister) functions work on struct platform_device, they should be declared in of_platform.h instead. This move is transparent for now as both headers include each other. Link: https://lore.kernel.org/r/20230329-dt-cpu-header-cleanups-v1-2-581e2605fe47@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
@@ -52,6 +52,11 @@ extern const struct of_device_id of_default_bus_match_table[];
|
||||
extern struct platform_device *of_device_alloc(struct device_node *np,
|
||||
const char *bus_id,
|
||||
struct device *parent);
|
||||
|
||||
extern int of_device_add(struct platform_device *pdev);
|
||||
extern int of_device_register(struct platform_device *ofdev);
|
||||
extern void of_device_unregister(struct platform_device *ofdev);
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
extern struct platform_device *of_find_device_by_node(struct device_node *np);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user