summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/superio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/superio.c')
-rw-r--r--drivers/mfd/superio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/superio.c b/drivers/mfd/superio.c
index 0f08d56..12d74b4 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)