hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/keyboard/pmic8xxx-keypad.c
....@@ -1,13 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* 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.
113 */
124
135 #include <linux/module.h>
....@@ -552,16 +544,12 @@
552544 }
553545
554546 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)
557548 return kp->key_sense_irq;
558
- }
559549
560550 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)
563552 return kp->key_stuck_irq;
564
- }
565553
566554 kp->input->name = "PMIC8XXX keypad";
567555 kp->input->phys = "pmic8xxx_keypad/input0";