1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-22 10:31:56 +02:00

dm: core: Drop dev_set_of_offset()

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

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2020-11-28 17:50:05 -07:00
parent 20da4e0231
commit 0d56fba3c4

View 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);