.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * twl6040-vibra.c - TWL6040 Vibrator driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
9 | 10 | * Based on twl4030-vibra.c by Henrik Saari <henrik.saari@nokia.com> |
---|
10 | 11 | * Felipe Balbi <felipe.balbi@nokia.com> |
---|
11 | 12 | * 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 | | - * |
---|
27 | 13 | */ |
---|
28 | 14 | #include <linux/module.h> |
---|
29 | 15 | #include <linux/platform_device.h> |
---|
.. | .. |
---|
286 | 272 | } |
---|
287 | 273 | |
---|
288 | 274 | 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) |
---|
291 | 276 | return -EINVAL; |
---|
292 | | - } |
---|
293 | 277 | |
---|
294 | 278 | error = devm_request_threaded_irq(&pdev->dev, info->irq, NULL, |
---|
295 | 279 | twl6040_vib_irq_handler, |
---|