]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: core: Drop dev_set_of_offset()
authorSimon Glass <sjg@chromium.org>
Sun, 29 Nov 2020 00:50:05 +0000 (17:50 -0700)
committerSimon Glass <sjg@chromium.org>
Sun, 13 Dec 2020 14:58:18 +0000 (07:58 -0700)
This pre-livetree function is not needed anymore. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/dm/device.h

index 5bef484247083ce2d9c117ccc6cd6eba48022564..25a77d08b9d9281e89bcbf5a9468a4b547c1990e 100644 (file)
@@ -177,11 +177,6 @@ static inline int dev_of_offset(const struct udevice *dev)
        return ofnode_to_offset(dev->node);
 }
 
-static inline void dev_set_of_offset(struct udevice *dev, int of_offset)
-{
-       dev->node = offset_to_ofnode(of_offset);
-}
-
 static inline bool dev_has_of_node(struct udevice *dev)
 {
        return ofnode_valid(dev->node);