hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/input/touchscreen/auo-pixcir-ts.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Driver for AUO in-cell touchscreens
34 *
....@@ -7,17 +8,6 @@
78 *
89 * Copyright (c) 2008 QUALCOMM Incorporated.
910 * Copyright (c) 2008 QUALCOMM USA, INC.
10
- *
11
- *
12
- * This software is licensed under the terms of the GNU General Public
13
- * License version 2, as published by the Free Software Foundation, and
14
- * may be copied, distributed, and modified under those terms.
15
- *
16
- * This program is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- * GNU General Public License for more details.
20
- *
2111 */
2212
2313 #include <linux/kernel.h>
....@@ -612,9 +602,8 @@
612602 return error;
613603 }
614604
615
- error = devm_add_action(&client->dev, auo_pixcir_reset, ts);
605
+ error = devm_add_action_or_reset(&client->dev, auo_pixcir_reset, ts);
616606 if (error) {
617
- auo_pixcir_reset(ts);
618607 dev_err(&client->dev, "failed to register reset action, %d\n",
619608 error);
620609 return error;