[PATCH 06/11] dm: core: Drop dev_set_of_offset()

Simon Glass sjg at chromium.org
Sun Nov 29 01:50:05 CET 2020


This pre-livetree function is not needed anymore. Drop it.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 include/dm/device.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/include/dm/device.h b/include/dm/device.h
index 5bef4842470..25a77d08b9d 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);
-- 
2.29.2.454.gaff20da3a2-goog



More information about the U-Boot mailing list