summaryrefslogtreecommitdiffstats
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-05-14 14:03:05 -0600
committerSimon Glass <sjg@chromium.org>2016-05-27 10:23:09 -0600
commit487d756f78629f5e9465c7ace2c14ef51401bc3b (patch)
treec669f291758c0d845b0aea77bf293de0c5fe0692 /include/efi_loader.h
parent19d2e34237d5c077b2dc395522a1559e4b5c62df (diff)
downloadtalos-obmc-uboot-487d756f78629f5e9465c7ace2c14ef51401bc3b.tar.gz
talos-obmc-uboot-487d756f78629f5e9465c7ace2c14ef51401bc3b.zip
dm: efi: Update for CONFIG_BLK
This code does not currently build with driver model enabled for block devices. Update it to correct this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 88b8149b14..44a950f484 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -134,7 +134,7 @@ uint64_t efi_add_memory_map(uint64_t start, uint64_t pages, int memory_type,
int efi_memory_init(void);
/* Convert strings from normal C strings to uEFI strings */
-static inline void ascii2unicode(u16 *unicode, char *ascii)
+static inline void ascii2unicode(u16 *unicode, const char *ascii)
{
while (*ascii)
*(unicode++) = *(ascii++);
OpenPOWER on IntegriCloud