From: Simon Glass Date: Sun, 29 Nov 2020 00:50:05 +0000 (-0700) Subject: dm: core: Drop dev_set_of_offset() X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-favicon.png?a=commitdiff_plain;h=0d56fba3c4156ba305053b5f8f317e2974f50eeb;p=u-boot.git dm: core: Drop dev_set_of_offset() This pre-livetree function is not needed anymore. Drop it. Signed-off-by: Simon Glass --- diff --git a/include/dm/device.h b/include/dm/device.h index 5bef484247..25a77d08b9 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -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);