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 | |
parent | 8813986dfde89ae2eab2a2315e1d23e4784c3d88 (diff) | |
download | u-boot-6ba46a0f21df1804e1c98334215ac57a495d9655.tar.gz u-boot-6ba46a0f21df1804e1c98334215ac57a495d9655.tar.bz2 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')
-rw-r--r-- | include/dm/device.h | 15 | ||||
-rw-r--r-- | include/dm/platdata.h | 15 |
2 files changed, 0 insertions, 30 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 diff --git a/include/dm/platdata.h b/include/dm/platdata.h index 3821a56f2c..4efb1dfe12 100644 --- a/include/dm/platdata.h +++ b/include/dm/platdata.h @@ -71,19 +71,4 @@ struct driver_rt { #define U_BOOT_DRVINFOS(__name) \ ll_entry_declare_list(struct driver_info, __name, driver_info) -/** - * Get a pointer to a given device info given its name - * - * With the declaration U_BOOT_DRVINFO(name), DM_DRVINFO_GET(name) will return a - * pointer to the struct driver_info created by that declaration. - * - * if OF_PLATDATA is enabled, from this it is possible to use the @dev member of - * struct driver_info to find the device pointer itself. - * - * @__name: Driver name (C identifier, not a string. E.g. gpio7_at_ff7e0000) - * @return struct driver_info * to the driver that created the device - */ -#define DM_DRVINFO_GET(__name) \ - ll_entry_get(struct driver_info, __name, driver_info) - #endif |