diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-15 17:25:25 +1300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-26 17:03:08 +1300 |
commit | 6ba46a0f21df1804e1c98334215ac57a495d9655 (patch) | |
tree | 02717aec71fe74e14c6956a57454a61e1f10cff8 /include/dm/device.h | |
parent | 8813986dfde89ae2eab2a2315e1d23e4784c3d88 (diff) | |
download | u-boot-6ba46a0f21df1804e1c98334215ac57a495d9655.tar.gz u-boot-6ba46a0f21df1804e1c98334215ac57a495d9655.tar.xz u-boot-6ba46a0f21df1804e1c98334215ac57a495d9655.zip |
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 'include/dm/device.h')
-rw-r--r-- | include/dm/device.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/dm/device.h b/include/dm/device.h index 5b8f27d455..ca796059e0 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -667,21 +667,6 @@ int device_find_global_by_ofnode(ofnode node, struct udevice **devp); int device_get_global_by_ofnode(ofnode node, struct udevice **devp); /** - * device_get_by_driver_info() - Get a device based on driver_info - * - * Locates a device by its struct driver_info, by using its reference which - * is updated during the bind process. - * - * The device is probed to activate it ready for use. - * - * @info: Struct driver_info - * @devp: Returns pointer to device if found, otherwise this is set to NULL - * @return 0 if OK, -ve on error - */ -int device_get_by_driver_info(const struct driver_info *info, - struct udevice **devp); - -/** * device_get_by_driver_info_idx() - Get a device based on driver_info index * * Locates a device by its struct driver_info, by using its index number which |