Apparently, we have a helper for strerror(-PTR_ERR(regmap)). Use it.

Signed-off-by: Ahmad Fatoum <ah...@a3f.at>
---
 drivers/mfd/superio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/superio.c b/drivers/mfd/superio.c
index 0f08d56cb357..12d74b40f6f8 100644
--- a/drivers/mfd/superio.c
+++ b/drivers/mfd/superio.c
@@ -88,7 +88,7 @@ void superio_chip_add(struct superio_chip *siochip)
                             &superio_regmap_config);
        if (IS_ERR(regmap))
                pr_warn("creating %s regmap failed: %s\n",
-                       chipname, strerror(-PTR_ERR(regmap)));
+                       chipname, strerrorp(regmap));
 
        ret = regmap_register_cdev(regmap, chipname);
        if (ret)
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to