summaryrefslogtreecommitdiff
path: root/disk/part_efi.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2013-02-28 15:03:46 +0000
committerTom Warren <twarren@nvidia.com>2013-03-14 11:06:44 -0700
commit2c1af9dcdcf4ede8d153c0918beca9067ec0eb36 (patch)
tree8f86cd1e5d351a6a731d8cbc0699b321941f46f4 /disk/part_efi.c
parenta885f85214dcd358b29a2ffe69ab4f9b515b95e9 (diff)
downloadu-boot-2c1af9dcdcf4ede8d153c0918beca9067ec0eb36.tar.gz
disk: define HAVE_BLOCK_DEVICE in a common place
This set of ifdefs is used in a number of places. Move its definition somewhere common so it doesn't have to be repeated. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Tom Rini <trini@ti.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'disk/part_efi.c')
-rw-r--r--disk/part_efi.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/disk/part_efi.c b/disk/part_efi.c
index 7665017330..b3fd0e954d 100644
--- a/disk/part_efi.c
+++ b/disk/part_efi.c
@@ -39,13 +39,7 @@
DECLARE_GLOBAL_DATA_PTR;
-#if defined(CONFIG_CMD_IDE) || \
- defined(CONFIG_CMD_SATA) || \
- defined(CONFIG_CMD_SCSI) || \
- defined(CONFIG_CMD_USB) || \
- defined(CONFIG_MMC) || \
- defined(CONFIG_SYSTEMACE)
-
+#ifdef HAVE_BLOCK_DEVICE
/**
* efi_crc32() - EFI version of crc32 function
* @buf: buffer to calculate crc32 of