From: Dan Carpenter Date: Sat, 9 Feb 2019 16:51:17 +0000 (-0800) Subject: Input: msm-vibrator - tweak an error message X-Git-Tag: v5.1-rc1~64^2~4^2~12 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=320f07b4a92216aa313680e3c7c7d325d8642715;p=linux.git 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: Dan Carpenter Signed-off-by: Dmitry Torokhov --- 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; }