]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: sandbox: Add a legacy host block interface
authorSimon Glass <sjg@chromium.org>
Sun, 1 May 2016 17:36:05 +0000 (11:36 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
Add a legacy block interface for sandbox host.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/sandbox.c

index 6d41508d5c17c15c388e5e2baae9545db35d324c..2b6a89333b5a66caeb848c37fe080ab9e1cf1a3a 100644 (file)
@@ -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