diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-15 07:25:25 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-26 07:03:08 +0300 |
commit | 6ba46a0f21df1804e1c98334215ac57a495d9655 (patch) | |
tree | 02717aec71fe74e14c6956a57454a61e1f10cff8 /drivers/core | |
parent | 8813986dfde89ae2eab2a2315e1d23e4784c3d88 (diff) | |
download | u-boot-6ba46a0f21df1804e1c98334215ac57a495d9655.tar.xz |
dm: core: Drop device_get_by_driver_info()
This function is now only used in a test. Drop it. Also drop
DM_DRVINFO_GET() which was the only purpose for having the function.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core')
-rw-r--r-- | drivers/core/device.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/core/device.c b/drivers/core/device.c index e915b3089d..2399f6f70c 100644 --- a/drivers/core/device.c +++ b/drivers/core/device.c @@ -811,21 +811,6 @@ int device_get_global_by_ofnode(ofnode ofnode, struct udevice **devp) } #if CONFIG_IS_ENABLED(OF_PLATDATA) -int device_get_by_driver_info(const struct driver_info *info, - struct udevice **devp) -{ - struct driver_info *info_base = - ll_entry_start(struct driver_info, driver_info); - int idx = info - info_base; - struct driver_rt *drt = gd_dm_driver_rt() + idx; - struct udevice *dev; - - dev = drt->dev; - *devp = NULL; - - return device_get_device_tail(dev, dev ? 0 : -ENOENT, devp); -} - int device_get_by_driver_info_idx(uint idx, struct udevice **devp) { struct driver_rt *drt = gd_dm_driver_rt() + idx; |