mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
dm: sandbox: Add a legacy host block interface
Add a legacy block interface for sandbox host. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
3ef85e3772
commit
0cc65a7cc2
1 changed files with 7 additions and 0 deletions
|
@ -239,4 +239,11 @@ U_BOOT_DRIVER(sandbox_host_blk) = {
|
|||
.ops = &sandbox_host_blk_ops,
|
||||
.priv_auto_alloc_size = sizeof(struct host_block_dev),
|
||||
};
|
||||
#else
|
||||
U_BOOT_LEGACY_BLK(sandbox_host) = {
|
||||
.if_typename = "host",
|
||||
.if_type = IF_TYPE_HOST,
|
||||
.max_devs = CONFIG_HOST_MAX_DEVICES,
|
||||
.get_dev = host_get_dev_err,
|
||||
};
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue