hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/parisc/lasi.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * LASI Device Driver
34 *
45 * (c) Copyright 1999 Red Hat Software
56 * Portions (c) Copyright 1999 The Puffin Group Inc.
67 * Portions (c) Copyright 1999 Hewlett-Packard
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 as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
128 *
139 * by Alan Cox <alan@redhat.com> and
1410 * Alex deVries <alex@onefishtwo.ca>
....@@ -167,7 +163,6 @@
167163 {
168164 extern void (*chassis_power_off)(void);
169165 struct gsc_asic *lasi;
170
- struct gsc_irq gsc_irq;
171166 int ret;
172167
173168 lasi = kzalloc(sizeof(*lasi), GFP_KERNEL);
....@@ -189,7 +184,7 @@
189184 lasi_init_irq(lasi);
190185
191186 /* the IRQ lasi should use */
192
- dev->irq = gsc_alloc_irq(&gsc_irq);
187
+ dev->irq = gsc_alloc_irq(&lasi->gsc_irq);
193188 if (dev->irq < 0) {
194189 printk(KERN_ERR "%s(): cannot get GSC irq\n",
195190 __func__);
....@@ -197,9 +192,9 @@
197192 return -EBUSY;
198193 }
199194
200
- lasi->eim = ((u32) gsc_irq.txn_addr) | gsc_irq.txn_data;
195
+ lasi->eim = ((u32) lasi->gsc_irq.txn_addr) | lasi->gsc_irq.txn_data;
201196
202
- ret = request_irq(gsc_irq.irq, gsc_asic_intr, 0, "lasi", lasi);
197
+ ret = request_irq(lasi->gsc_irq.irq, gsc_asic_intr, 0, "lasi", lasi);
203198 if (ret < 0) {
204199 kfree(lasi);
205200 return ret;