summaryrefslogtreecommitdiffstats
path: root/include/sandboxblockdev.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-02-29 15:25:57 -0700
committerSimon Glass <sjg@chromium.org>2016-03-14 15:34:50 -0600
commit40fd050890e08eb6d064aaf074cf3a8b75d1251e (patch)
treec7833a964277e045db74e4f5e602efc23b8a9bde /include/sandboxblockdev.h
parent7ded959e4d5b93c10a8b57a0a391fb35cefb85ce (diff)
downloadblackbird-obmc-uboot-40fd050890e08eb6d064aaf074cf3a8b75d1251e.tar.gz
blackbird-obmc-uboot-40fd050890e08eb6d064aaf074cf3a8b75d1251e.zip
dm: sandbox: Add driver-model block-device support for sandbox
Update the host driver to support driver model for block devices. A future commit will remove the old code, but for now it is useful to be able to use it both with and without CONFIG_BLK. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'include/sandboxblockdev.h')
-rw-r--r--include/sandboxblockdev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sandboxblockdev.h b/include/sandboxblockdev.h
index 59f9519346..5174f45f5e 100644
--- a/include/sandboxblockdev.h
+++ b/include/sandboxblockdev.h
@@ -8,7 +8,9 @@
#define __SANDBOX_BLOCK_DEV__
struct host_block_dev {
+#ifndef CONFIG_BLK
struct blk_desc blk_dev;
+#endif
char *filename;
int fd;
};
OpenPOWER on IntegriCloud