| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Driver for AUO in-cell touchscreens |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 7 | 8 | * |
|---|
| 8 | 9 | * Copyright (c) 2008 QUALCOMM Incorporated. |
|---|
| 9 | 10 | * 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 | | - * |
|---|
| 21 | 11 | */ |
|---|
| 22 | 12 | |
|---|
| 23 | 13 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 612 | 602 | return error; |
|---|
| 613 | 603 | } |
|---|
| 614 | 604 | |
|---|
| 615 | | - error = devm_add_action(&client->dev, auo_pixcir_reset, ts); |
|---|
| 605 | + error = devm_add_action_or_reset(&client->dev, auo_pixcir_reset, ts); |
|---|
| 616 | 606 | if (error) { |
|---|
| 617 | | - auo_pixcir_reset(ts); |
|---|
| 618 | 607 | dev_err(&client->dev, "failed to register reset action, %d\n", |
|---|
| 619 | 608 | error); |
|---|
| 620 | 609 | return error; |
|---|