summaryrefslogtreecommitdiff
path: root/include/dm/device.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-15 17:25:25 +1300
committerSimon Glass <sjg@chromium.org>2021-03-26 17:03:08 +1300
commit6ba46a0f21df1804e1c98334215ac57a495d9655 (patch)
tree02717aec71fe74e14c6956a57454a61e1f10cff8 /include/dm/device.h
parent8813986dfde89ae2eab2a2315e1d23e4784c3d88 (diff)
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.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/dm/device.h b/include/dm/device.h
index 5b8f27d455b..ca796059e0c 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