summaryrefslogtreecommitdiff
path: root/drivers/input/misc/88pm860x_onkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/misc/88pm860x_onkey.c')
-rw-r--r--drivers/input/misc/88pm860x_onkey.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/misc/88pm860x_onkey.c b/drivers/input/misc/88pm860x_onkey.c
index cc87443aa2ee..685995cad73f 100644
--- a/drivers/input/misc/88pm860x_onkey.c
+++ b/drivers/input/misc/88pm860x_onkey.c
@@ -64,10 +64,8 @@ static int pm860x_onkey_probe(struct platform_device *pdev)
int irq, ret;
irq = platform_get_irq(pdev, 0);
- if (irq < 0) {
- dev_err(&pdev->dev, "No IRQ resource!\n");
+ if (irq < 0)
return -EINVAL;
- }
info = devm_kzalloc(&pdev->dev, sizeof(struct pm860x_onkey_info),
GFP_KERNEL);