diff options
author | Simon Glass <sjg@chromium.org> | 2024-09-20 09:24:26 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-10-03 11:52:16 -0600 |
commit | 71b1ae4db1bb272b495a4f715b34d443d7b84510 (patch) | |
tree | 01581a5ccde9c141ca3a438179fb554c69ecab70 /include/bootdev.h | |
parent | 99344c847d4fe3da288f430274a514052c29aed1 (diff) |
bootstd: Add stub for bootdev_setup_for_sibling_blk()
When bootstd is not enabled, bootdevs should not be set up. Add a
static inline function to see to this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/bootdev.h')
-rw-r--r-- | include/bootdev.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/bootdev.h b/include/bootdev.h index 2cee8832d26..ad4af0d1310 100644 --- a/include/bootdev.h +++ b/include/bootdev.h @@ -395,6 +395,7 @@ int bootdev_next_prio(struct bootflow_iter *iter, struct udevice **devp); */ int bootdev_setup_for_dev(struct udevice *parent, const char *drv_name); +#if CONFIG_IS_ENABLED(BOOTSTD) /** * bootdev_setup_for_sibling_blk() - Bind a new bootdev device for a blk device * @@ -409,6 +410,13 @@ int bootdev_setup_for_dev(struct udevice *parent, const char *drv_name); * Return: 0 if OK, -ve on error */ int bootdev_setup_for_sibling_blk(struct udevice *blk, const char *drv_name); +#else +static int bootdev_setup_for_sibling_blk(struct udevice *blk, + const char *drv_name) +{ + return 0; +} +#endif /** * bootdev_get_sibling_blk() - Locate the block device for a bootdev |