| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * WAX Device Driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * (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. |
|---|
| 10 | 6 | * |
|---|
| 11 | 7 | * by Helge Deller <deller@gmx.de> |
|---|
| 12 | 8 | */ |
|---|
| .. | .. |
|---|
| 72 | 68 | { |
|---|
| 73 | 69 | struct gsc_asic *wax; |
|---|
| 74 | 70 | struct parisc_device *parent; |
|---|
| 75 | | - struct gsc_irq gsc_irq; |
|---|
| 76 | 71 | int ret; |
|---|
| 77 | 72 | |
|---|
| 78 | 73 | wax = kzalloc(sizeof(*wax), GFP_KERNEL); |
|---|
| .. | .. |
|---|
| 89 | 84 | wax_init_irq(wax); |
|---|
| 90 | 85 | |
|---|
| 91 | 86 | /* 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); |
|---|
| 93 | 88 | if (dev->irq < 0) { |
|---|
| 94 | 89 | printk(KERN_ERR "%s(): cannot get GSC irq\n", |
|---|
| 95 | 90 | __func__); |
|---|
| .. | .. |
|---|
| 97 | 92 | return -EBUSY; |
|---|
| 98 | 93 | } |
|---|
| 99 | 94 | |
|---|
| 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; |
|---|
| 101 | 96 | |
|---|
| 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); |
|---|
| 103 | 98 | if (ret < 0) { |
|---|
| 104 | 99 | kfree(wax); |
|---|
| 105 | 100 | return ret; |
|---|