]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: uniphier: use pr_err() where possible
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 26 Feb 2016 05:21:36 +0000 (14:21 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 28 Feb 2016 18:50:16 +0000 (03:50 +0900)
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/dram/umc-ph1-pro4.c
arch/arm/mach-uniphier/dram/umc-proxstream2.c

index 16c82645c4694dad99b6d9fdf88c78c4cbcdf0ad..ff988e3540489ece59bf3b9dc244870a2c4d61d3 100644 (file)
@@ -82,7 +82,7 @@ static int umc_dramcont_init(void __iomem *dramcont, void __iomem *ca_base,
                dram_size = DRAM_SZ_512M;
                break;
        default:
-               printf("unsupported DRAM size\n");
+               pr_err("unsupported DRAM size\n");
                return -EINVAL;
        }
 
index dca34ba78bdc793677d8540c1eb56c1128d32b37..d98765b2ac820b9f352781dc8c4769556d9c6a44 100644 (file)
@@ -344,7 +344,7 @@ static int __ddrphy_training(void __iomem *phy_base,
 
        do {
                if (--timeout < 0) {
-                       printf("%s: error: timeout during DDR training\n",
+                       pr_err("%s: error: timeout during DDR training\n",
                               __func__);
                        return -ETIMEDOUT;
                }
@@ -354,7 +354,7 @@ static int __ddrphy_training(void __iomem *phy_base,
 
        for (s = seq; s->description; s++) {
                if (pgsr0 & s->err_flag) {
-                       printf("%s: error: %s failed\n", __func__,
+                       pr_err("%s: error: %s failed\n", __func__,
                               s->description);
                        return -EIO;
                }
@@ -597,7 +597,7 @@ int proxstream2_umc_init(const struct uniphier_board_data *bd)
                freq = FREQ_2133M;
                break;
        default:
-               printf("unsupported DRAM frequency %d MHz\n", bd->dram_freq);
+               pr_err("unsupported DRAM frequency %d MHz\n", bd->dram_freq);
                return -EINVAL;
        }
 
@@ -606,7 +606,7 @@ int proxstream2_umc_init(const struct uniphier_board_data *bd)
                               bd->dram_ch[ch].size / SZ_256M,
                               bd->dram_ch[ch].width);
                if (ret) {
-                       printf("failed to initialize UMC ch%d\n", ch);
+                       pr_err("failed to initialize UMC ch%d\n", ch);
                        return ret;
                }