hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/irqchip/irq-mxs.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved.
34 * Copyright (C) 2014 Oleksij Rempel <linux@rempel-privat.de>
45 * Add Alphascale ASM9260 support.
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License along
17
- * with this program; if not, write to the Free Software Foundation, Inc.,
18
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
196 */
207
218 #include <linux/kernel.h>
....@@ -71,7 +58,7 @@
7158 static struct icoll_priv icoll_priv;
7259 static struct irq_domain *icoll_domain;
7360
74
-/* calculate bit offset depending on number of intterupt per register */
61
+/* calculate bit offset depending on number of interrupt per register */
7562 static u32 icoll_intr_bitshift(struct irq_data *d, u32 bit)
7663 {
7764 /*
....@@ -81,7 +68,7 @@
8168 return bit << ((d->hwirq & 3) << 3);
8269 }
8370
84
-/* calculate mem offset depending on number of intterupt per register */
71
+/* calculate mem offset depending on number of interrupt per register */
8572 static void __iomem *icoll_intr_reg(struct irq_data *d)
8673 {
8774 /* offset = hwirq / intr_per_reg * 0x10 */