projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ab0e5a
)
Input: msm-vibrator - tweak an error message
author
Dan Carpenter
<dan.carpenter@oracle.com>
Sat, 9 Feb 2019 16:51:17 +0000
(08:51 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Sat, 9 Feb 2019 17:01:12 +0000
(09:01 -0800)
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>
drivers/input/misc/msm-vibrator.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/msm-vibrator.c
b/drivers/input/misc/msm-vibrator.c
index c06941021447aaa4192b776ea0b3a21a0b4670fe..69f2579c4ec2eb8a8a766151bf1e5de2941a25e3 100644
(file)
--- 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;
}