hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/input/misc/twl6040-vibra.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * twl6040-vibra.c - TWL6040 Vibrator driver
34 *
....@@ -9,21 +10,6 @@
910 * Based on twl4030-vibra.c by Henrik Saari <henrik.saari@nokia.com>
1011 * Felipe Balbi <felipe.balbi@nokia.com>
1112 * Jari Vanhala <ext-javi.vanhala@nokia.com>
12
- *
13
- * This program is free software; you can redistribute it and/or modify
14
- * it under the terms of the GNU General Public License version 2 as
15
- * published by the Free Software Foundation.
16
- *
17
- * This program is distributed in the hope that it will be useful, but
18
- * WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
- * General Public License for more details.
21
- *
22
- * You should have received a copy of the GNU General Public License
23
- * along with this program; if not, write to the Free Software
24
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25
- * 02110-1301 USA
26
- *
2713 */
2814 #include <linux/module.h>
2915 #include <linux/platform_device.h>
....@@ -286,10 +272,8 @@
286272 }
287273
288274 info->irq = platform_get_irq(pdev, 0);
289
- if (info->irq < 0) {
290
- dev_err(info->dev, "invalid irq\n");
275
+ if (info->irq < 0)
291276 return -EINVAL;
292
- }
293277
294278 error = devm_request_threaded_irq(&pdev->dev, info->irq, NULL,
295279 twl6040_vib_irq_handler,