hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/clocksource/timer-oxnas-rps.c
....@@ -1,21 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * drivers/clocksource/timer-oxnas-rps.c
34 *
45 * Copyright (C) 2009 Oxford Semiconductor Ltd
56 * Copyright (C) 2013 Ma Haijun <mahaijuns@gmail.com>
67 * 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/>.
198 */
209
2110 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -247,7 +236,7 @@
247236 }
248237
249238 rps->irq = irq_of_parse_and_map(np, 0);
250
- if (rps->irq < 0) {
239
+ if (!rps->irq) {
251240 ret = -EINVAL;
252241 goto err_iomap;
253242 }