summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/rockchip/io-domain.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/soc/rockchip/io-domain.c b/drivers/soc/rockchip/io-domain.c
index d31d38b1da..9f60b6eb4c 100644
--- a/drivers/soc/rockchip/io-domain.c
+++ b/drivers/soc/rockchip/io-domain.c
@@ -172,9 +172,7 @@ static int rockchip_iodomain_probe(struct device *dev)
/* If a supply wasn't specified, that's OK */
if (ret == -ENODEV)
continue;
- else if (ret != -EPROBE_DEFER)
- dev_err(dev, "couldn't get regulator %s\n",
- supply_name);
+ dev_err_probe(dev, ret, "getting regulator\n");
goto out;
}