Commit 320f07b4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Dmitry Torokhov

Input: msm-vibrator - tweak an error message

The PTR_ERR(NULL) value is zero and it's not useful to print that.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 0ab0e5a3
...@@ -199,8 +199,7 @@ static int msm_vibrator_probe(struct platform_device *pdev) ...@@ -199,8 +199,7 @@ static int msm_vibrator_probe(struct platform_device *pdev)
vibrator->base = devm_ioremap(&pdev->dev, res->start, vibrator->base = devm_ioremap(&pdev->dev, res->start,
resource_size(res)); resource_size(res));
if (!vibrator->base) { if (!vibrator->base) {
dev_err(&pdev->dev, "Failed to iomap resource: %ld\n", dev_err(&pdev->dev, "Failed to iomap resource.\n");
PTR_ERR(vibrator->base));
return -ENOMEM; return -ENOMEM;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment