summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/input/misc/msm-vibrator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/misc/msm-vibrator.c b/drivers/input/misc/msm-vibrator.c
index c06941021447..69f2579c4ec2 100644
--- a/drivers/input/misc/msm-vibrator.c
+++ b/drivers/input/misc/msm-vibrator.c
@@ -199,8 +199,7 @@ static int msm_vibrator_probe(struct platform_device *pdev)
vibrator->base = devm_ioremap(&pdev->dev, res->start,
resource_size(res));
if (!vibrator->base) {
- dev_err(&pdev->dev, "Failed to iomap resource: %ld\n",
- PTR_ERR(vibrator->base));
+ dev_err(&pdev->dev, "Failed to iomap resource.\n");
return -ENOMEM;
}