OSDN Git Service

of: Move of_device_(add|register|unregister) to of_platform.h
authorRob Herring <robh@kernel.org>
Wed, 29 Mar 2023 15:51:59 +0000 (10:51 -0500)
committerRob Herring <robh@kernel.org>
Mon, 10 Apr 2023 23:32:31 +0000 (18:32 -0500)
commit4c32fb7dcf65b16cc7b2837ccfc35d00be92bddb
tree4011bbbb371eae5c0a88d0eb1397a80292f11672
parent1dd5474ee6ee1d6ddc95f1423966ab8d4afda448
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>
include/linux/of_device.h
include/linux/of_platform.h