hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/thermal/st/st_thermal_memmap.c
....@@ -1,13 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ST Thermal Sensor Driver for memory mapped sensors.
34 * Author: Ajit Pal Singh <ajitpal.singh@st.com>
45 *
56 * 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.
117 */
128
139 #include <linux/of.h>
....@@ -98,10 +94,8 @@
9894 int ret;
9995
10096 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)
10398 return sensor->irq;
104
- }
10599
106100 ret = devm_request_threaded_irq(dev, sensor->irq,
107101 NULL, st_mmap_thermal_trip_handler,