]> git.sur5r.net Git - u-boot/blobdiff - drivers/adc/exynos-adc.c
treewide: replace with error() with pr_err()
[u-boot] / drivers / adc / exynos-adc.c
index 324d72f3a95980c1124bdbe3a35f4a8694bf3ca8..3bb065d2155cd78cfb2504331a5e7d3757b75a05 100644 (file)
@@ -22,7 +22,7 @@ int exynos_adc_channel_data(struct udevice *dev, int channel,
        struct exynos_adc_v2 *regs = priv->regs;
 
        if (channel != priv->active_channel) {
-               error("Requested channel is not active!");
+               pr_err("Requested channel is not active!");
                return -EINVAL;
        }
 
@@ -80,7 +80,7 @@ int exynos_adc_probe(struct udevice *dev)
 
        /* Check HW version */
        if (readl(&regs->version) != ADC_V2_VERSION) {
-               error("This driver supports only ADC v2!");
+               pr_err("This driver supports only ADC v2!");
                return -ENXIO;
        }
 
@@ -109,7 +109,7 @@ int exynos_adc_ofdata_to_platdata(struct udevice *dev)
 
        priv->regs = (struct exynos_adc_v2 *)devfdt_get_addr(dev);
        if (priv->regs == (struct exynos_adc_v2 *)FDT_ADDR_T_NONE) {
-               error("Dev: %s - can't get address!", dev->name);
+               pr_err("Dev: %s - can't get address!", dev->name);
                return -ENODATA;
        }