hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/parisc/wax.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * WAX Device Driver
34 *
45 * (c) Copyright 2000 The Puffin Group Inc.
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.
106 *
117 * by Helge Deller <deller@gmx.de>
128 */
....@@ -72,7 +68,6 @@
7268 {
7369 struct gsc_asic *wax;
7470 struct parisc_device *parent;
75
- struct gsc_irq gsc_irq;
7671 int ret;
7772
7873 wax = kzalloc(sizeof(*wax), GFP_KERNEL);
....@@ -89,7 +84,7 @@
8984 wax_init_irq(wax);
9085
9186 /* the IRQ wax should use */
92
- dev->irq = gsc_claim_irq(&gsc_irq, WAX_GSC_IRQ);
87
+ dev->irq = gsc_claim_irq(&wax->gsc_irq, WAX_GSC_IRQ);
9388 if (dev->irq < 0) {
9489 printk(KERN_ERR "%s(): cannot get GSC irq\n",
9590 __func__);
....@@ -97,9 +92,9 @@
9792 return -EBUSY;
9893 }
9994
100
- wax->eim = ((u32) gsc_irq.txn_addr) | gsc_irq.txn_data;
95
+ wax->eim = ((u32) wax->gsc_irq.txn_addr) | wax->gsc_irq.txn_data;
10196
102
- ret = request_irq(gsc_irq.irq, gsc_asic_intr, 0, "wax", wax);
97
+ ret = request_irq(wax->gsc_irq.irq, gsc_asic_intr, 0, "wax", wax);
10398 if (ret < 0) {
10499 kfree(wax);
105100 return ret;