hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/irqchip/irq-aspeed-i2c-ic.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Aspeed 24XX/25XX I2C Interrupt Controller.
34 *
45 * Copyright (C) 2012-2017 ASPEED Technology Inc.
56 * Copyright 2017 IBM Corporation
67 * Copyright 2017 Google, Inc.
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #include <linux/irq.h>
....@@ -82,8 +79,8 @@
8279 }
8380
8481 i2c_ic->parent_irq = irq_of_parse_and_map(node, 0);
85
- if (i2c_ic->parent_irq < 0) {
86
- ret = i2c_ic->parent_irq;
82
+ if (!i2c_ic->parent_irq) {
83
+ ret = -EINVAL;
8784 goto err_iounmap;
8885 }
8986