From: Simon Glass Date: Sun, 1 May 2016 17:36:05 +0000 (-0600) Subject: dm: sandbox: Add a legacy host block interface X-Git-Tag: v2016.07-rc1~203^2~50 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0cc65a7cc23bfbaab709d8934a6b8c73084852ea;p=u-boot dm: sandbox: Add a legacy host block interface Add a legacy block interface for sandbox host. Signed-off-by: Simon Glass --- diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c index 6d41508d5c..2b6a89333b 100644 --- a/drivers/block/sandbox.c +++ b/drivers/block/sandbox.c @@ -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