| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ST Thermal Sensor Driver for memory mapped sensors. |
|---|
| 3 | 4 | * Author: Ajit Pal Singh <ajitpal.singh@st.com> |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Copyright (C) 2003-2014 STMicroelectronics (R&D) Limited |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 9 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 10 | | - * (at your option) any later version. |
|---|
| 11 | 7 | */ |
|---|
| 12 | 8 | |
|---|
| 13 | 9 | #include <linux/of.h> |
|---|
| .. | .. |
|---|
| 98 | 94 | int ret; |
|---|
| 99 | 95 | |
|---|
| 100 | 96 | sensor->irq = platform_get_irq(pdev, 0); |
|---|
| 101 | | - if (sensor->irq < 0) { |
|---|
| 102 | | - dev_err(dev, "failed to register IRQ\n"); |
|---|
| 97 | + if (sensor->irq < 0) |
|---|
| 103 | 98 | return sensor->irq; |
|---|
| 104 | | - } |
|---|
| 105 | 99 | |
|---|
| 106 | 100 | ret = devm_request_threaded_irq(dev, sensor->irq, |
|---|
| 107 | 101 | NULL, st_mmap_thermal_trip_handler, |
|---|