Merge tag 'efi-2020-07-rc6' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
[oweals/u-boot.git] / drivers / demo / demo-simple.c
index 2bcb7dfb479c4c123b3e2b875e4df4c680906290..68972c780f44cd636610910d75fb229eb7ebba7f 100644 (file)
@@ -1,22 +1,22 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2013 Google, Inc
  *
  * (C) Copyright 2012
  * Pavel Herrmann <morpheus.ibis@gmail.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <dm.h>
 #include <dm-demo.h>
+#include <mapmem.h>
 #include <asm/io.h>
 
 static int simple_hello(struct udevice *dev, int ch)
 {
        const struct dm_demo_pdata *pdata = dev_get_platdata(dev);
 
-       printf("Hello from %08x: %s %d\n", map_to_sysmem(dev), pdata->colour,
+       printf("Hello from %08x: %s %d\n", (uint)map_to_sysmem(dev), pdata->colour,
               pdata->sides);
 
        return 0;