.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * LASI Device Driver |
---|
3 | 4 | * |
---|
4 | 5 | * (c) Copyright 1999 Red Hat Software |
---|
5 | 6 | * Portions (c) Copyright 1999 The Puffin Group Inc. |
---|
6 | 7 | * 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. |
---|
12 | 8 | * |
---|
13 | 9 | * by Alan Cox <alan@redhat.com> and |
---|
14 | 10 | * Alex deVries <alex@onefishtwo.ca> |
---|
.. | .. |
---|
167 | 163 | { |
---|
168 | 164 | extern void (*chassis_power_off)(void); |
---|
169 | 165 | struct gsc_asic *lasi; |
---|
170 | | - struct gsc_irq gsc_irq; |
---|
171 | 166 | int ret; |
---|
172 | 167 | |
---|
173 | 168 | lasi = kzalloc(sizeof(*lasi), GFP_KERNEL); |
---|
.. | .. |
---|
189 | 184 | lasi_init_irq(lasi); |
---|
190 | 185 | |
---|
191 | 186 | /* the IRQ lasi should use */ |
---|
192 | | - dev->irq = gsc_alloc_irq(&gsc_irq); |
---|
| 187 | + dev->irq = gsc_alloc_irq(&lasi->gsc_irq); |
---|
193 | 188 | if (dev->irq < 0) { |
---|
194 | 189 | printk(KERN_ERR "%s(): cannot get GSC irq\n", |
---|
195 | 190 | __func__); |
---|
.. | .. |
---|
197 | 192 | return -EBUSY; |
---|
198 | 193 | } |
---|
199 | 194 | |
---|
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; |
---|
201 | 196 | |
---|
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); |
---|
203 | 198 | if (ret < 0) { |
---|
204 | 199 | kfree(lasi); |
---|
205 | 200 | return ret; |
---|