.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* Copyright (c) 2009-2011, Code Aurora Forum. All rights reserved. |
---|
2 | | - * |
---|
3 | | - * This program is free software; you can redistribute it and/or modify |
---|
4 | | - * it under the terms of the GNU General Public License version 2 and |
---|
5 | | - * only version 2 as published by the Free Software Foundation. |
---|
6 | | - * |
---|
7 | | - * This program is distributed in the hope that it will be useful, |
---|
8 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
9 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
10 | | - * GNU General Public License for more details. |
---|
11 | 3 | */ |
---|
12 | 4 | |
---|
13 | 5 | #include <linux/module.h> |
---|
.. | .. |
---|
552 | 544 | } |
---|
553 | 545 | |
---|
554 | 546 | kp->key_sense_irq = platform_get_irq(pdev, 0); |
---|
555 | | - if (kp->key_sense_irq < 0) { |
---|
556 | | - dev_err(&pdev->dev, "unable to get keypad sense irq\n"); |
---|
| 547 | + if (kp->key_sense_irq < 0) |
---|
557 | 548 | return kp->key_sense_irq; |
---|
558 | | - } |
---|
559 | 549 | |
---|
560 | 550 | kp->key_stuck_irq = platform_get_irq(pdev, 1); |
---|
561 | | - if (kp->key_stuck_irq < 0) { |
---|
562 | | - dev_err(&pdev->dev, "unable to get keypad stuck irq\n"); |
---|
| 551 | + if (kp->key_stuck_irq < 0) |
---|
563 | 552 | return kp->key_stuck_irq; |
---|
564 | | - } |
---|
565 | 553 | |
---|
566 | 554 | kp->input->name = "PMIC8XXX keypad"; |
---|
567 | 555 | kp->input->phys = "pmic8xxx_keypad/input0"; |
---|