]> git.sur5r.net Git - u-boot/blobdiff - drivers/demo/demo-simple.c
mtd: spi: Correct parameters for s25fs512s flash
[u-boot] / drivers / demo / demo-simple.c
index 11def86032c6b0a319dae3d4add27d061a546bce..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;
@@ -32,7 +32,7 @@ static int demo_shape_ofdata_to_platdata(struct udevice *dev)
        return demo_parse_dt(dev);
 }
 
-static const struct device_id demo_shape_id[] = {
+static const struct udevice_id demo_shape_id[] = {
        { "demo-simple", 0 },
        { },
 };