diff options
author | Rob Herring <robh@kernel.org> | 2023-03-29 18:51:59 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2023-04-11 02:32:31 +0300 |
commit | 4c32fb7dcf65b16cc7b2837ccfc35d00be92bddb (patch) | |
tree | 4011bbbb371eae5c0a88d0eb1397a80292f11672 /include/linux/of_platform.h | |
parent | 1dd5474ee6ee1d6ddc95f1423966ab8d4afda448 (diff) | |
download | linux-4c32fb7dcf65b16cc7b2837ccfc35d00be92bddb.tar.xz |
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>
Diffstat (limited to 'include/linux/of_platform.h')
-rw-r--r-- | include/linux/of_platform.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h index d15b6cd5e1c3..8ac5cb933dc3 100644 --- a/include/linux/of_platform.h +++ b/include/linux/of_platform.h @@ -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 |