aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-11-28 17:50:05 -0700
committerSimon Glass <sjg@chromium.org>2020-12-13 07:58:18 -0700
commit0d56fba3c4156ba305053b5f8f317e2974f50eeb (patch)
treeb2570ba1bc2cb0ac7ef944c54863d2bad9e8285e
parent20da4e023175b91cefab4afe4d64fcab4a2fa873 (diff)
downloadu-boot-0d56fba3c4156ba305053b5f8f317e2974f50eeb.zip
u-boot-0d56fba3c4156ba305053b5f8f317e2974f50eeb.tar.gz
u-boot-0d56fba3c4156ba305053b5f8f317e2974f50eeb.tar.bz2
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>
-rw-r--r--include/dm/device.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/dm/device.h b/include/dm/device.h
index 5bef484..25a77d0 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);