diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-02-09 08:51:17 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-02-09 09:01:12 -0800 |
commit | 320f07b4a92216aa313680e3c7c7d325d8642715 (patch) | |
tree | e5a06ad4f38cf9b085d40bcb812fbf7ad6e2b5bb /drivers/input | |
parent | 0ab0e5a383a78a9e3bd9a02a1b06237fe75fd6a1 (diff) | |
download | linux-320f07b4a92216aa313680e3c7c7d325d8642715.tar.bz2 |
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 <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/msm-vibrator.c | 3 |
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; } |