| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * drivers/clocksource/timer-oxnas-rps.c |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2009 Oxford Semiconductor Ltd |
|---|
| 5 | 6 | * Copyright (C) 2013 Ma Haijun <mahaijuns@gmail.com> |
|---|
| 6 | 7 | * Copyright (C) 2016 Neil Armstrong <narmstrong@baylibre.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 9 | | - * under the terms and conditions of the GNU General Public License, |
|---|
| 10 | | - * version 2, as published by the Free Software Foundation. |
|---|
| 11 | | - * |
|---|
| 12 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
|---|
| 13 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 14 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 15 | | - * more details. |
|---|
| 16 | | - * |
|---|
| 17 | | - * You should have received a copy of the GNU General Public License |
|---|
| 18 | | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 19 | 8 | */ |
|---|
| 20 | 9 | |
|---|
| 21 | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 247 | 236 | } |
|---|
| 248 | 237 | |
|---|
| 249 | 238 | rps->irq = irq_of_parse_and_map(np, 0); |
|---|
| 250 | | - if (rps->irq < 0) { |
|---|
| 239 | + if (!rps->irq) { |
|---|
| 251 | 240 | ret = -EINVAL; |
|---|
| 252 | 241 | goto err_iomap; |
|---|
| 253 | 242 | } |
|---|