From: Simon Glass Date: Sun, 1 May 2016 11:36:05 -0600 Subject: [U-Boot] [PATCH v2 17/44] dm: sandbox: Add a legacy host block interface In-Reply-To: <1462124192-8748-1-git-send-email-sjg@chromium.org> References: <1462124192-8748-1-git-send-email-sjg@chromium.org> Message-ID: <1462124192-8748-18-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add a legacy block interface for sandbox host. Signed-off-by: Simon Glass --- Changes in v2: None drivers/block/sandbox.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c index 6d41508..2b6a893 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 -- 2.8.0.rc3.226.g39d4020