Merge tag 'u-boot-stm32-mcu-20190423' of https://github.com/pchotard/u-boot
[oweals/u-boot.git] / common / spl / spl_sdp.c
index 333d518f4d6e777aa603c024c985082db180b485..807256e908c2cc43eefcced065f7cb25b822f1b6 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2016 Toradex
  * Author: Stefan Agner <stefan.agner@toradex.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -11,8 +10,6 @@
 #include <g_dnl.h>
 #include <sdp.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 static int spl_sdp_load_image(struct spl_image_info *spl_image,
                              struct spl_boot_device *bootdev)
 {
@@ -24,13 +21,13 @@ static int spl_sdp_load_image(struct spl_image_info *spl_image,
 
        ret = sdp_init(controller_index);
        if (ret) {
-               pr_err("SDP init failed: %d", ret);
+               pr_err("SDP init failed: %d\n", ret);
                return -ENODEV;
        }
 
        /* This command typically does not return but jumps to an image */
        sdp_handle(controller_index);
-       pr_err("SDP ended");
+       pr_err("SDP ended\n");
 
        return -EINVAL;
 }