mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
0ab0e5a383
commit
320f07b4a9
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue