| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Touchscreen driver for Marvell 88PM860x |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2009 Marvell International Ltd. |
|---|
| 5 | 6 | * Haojian Zhuang <haojian.zhuang@marvell.com> |
|---|
| 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 version 2 as |
|---|
| 9 | | - * published by the Free Software Foundation. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | #include <linux/kernel.h> |
|---|
| 12 | 9 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 188 | 185 | int irq, ret, res_x = 0, data = 0; |
|---|
| 189 | 186 | |
|---|
| 190 | 187 | irq = platform_get_irq(pdev, 0); |
|---|
| 191 | | - if (irq < 0) { |
|---|
| 192 | | - dev_err(&pdev->dev, "No IRQ resource!\n"); |
|---|
| 188 | + if (irq < 0) |
|---|
| 193 | 189 | return -EINVAL; |
|---|
| 194 | | - } |
|---|
| 195 | 190 | |
|---|
| 196 | 191 | if (pm860x_touch_dt_init(pdev, chip, &res_x)) { |
|---|
| 197 | 192 | if (pdata) { |
|---|