]> git.sur5r.net Git - u-boot/blobdiff - drivers/sysreset/sysreset_sti.c
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / drivers / sysreset / sysreset_sti.c
index 9b58aa8e97b2a4391fdc7b61a766242091d958fd..df2fa1cf7af0c699ffde29853515fbcd033bb134 100644 (file)
@@ -1,7 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
- * (C) Copyright 2017 Patrice Chotard <patrice.chotard@st.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
+ * Copyright (C) 2017, STMicroelectronics - All Rights Reserved
+ * Author(s): Patrice Chotard, <patrice.chotard@st.com> for STMicroelectronics.
  */
 
 #include <common.h>
@@ -39,7 +39,7 @@ static int sti_sysreset_probe(struct udevice *dev)
                                             "st,syscfg", NULL, 0, 0,
                                             &syscfg_phandle);
        if (ret < 0) {
-               error("Can't get syscfg phandle: %d\n", ret);
+               pr_err("Can't get syscfg phandle: %d\n", ret);
                return ret;
        }
 
@@ -47,14 +47,14 @@ static int sti_sysreset_probe(struct udevice *dev)
                                             syscfg_phandle.node,
                                             &syscon);
        if (ret) {
-               error("%s: uclass_get_device_by_of_offset failed: %d\n",
+               pr_err("%s: uclass_get_device_by_of_offset failed: %d\n",
                      __func__, ret);
                return ret;
        }
 
        regmap = syscon_get_regmap(syscon);
        if (!regmap) {
-               error("unable to get regmap for %s\n", syscon->name);
+               pr_err("unable to get regmap for %s\n", syscon->name);
                return -ENODEV;
        }