.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * ixp4xx PATA/Compact Flash driver |
---|
3 | 4 | * Copyright (C) 2006-07 Tower Technologies |
---|
.. | .. |
---|
9 | 10 | * on the ixp4xx. In the irq is not available, you might |
---|
10 | 11 | * want to modify both this driver and libata to run in |
---|
11 | 12 | * polling mode. |
---|
12 | | - * |
---|
13 | | - * This program is free software; you can redistribute it and/or modify |
---|
14 | | - * it under the terms of the GNU General Public License version 2 as |
---|
15 | | - * published by the Free Software Foundation. |
---|
16 | | - * |
---|
17 | 13 | */ |
---|
18 | 14 | |
---|
19 | 15 | #include <linux/kernel.h> |
---|
.. | .. |
---|
139 | 135 | |
---|
140 | 136 | static int ixp4xx_pata_probe(struct platform_device *pdev) |
---|
141 | 137 | { |
---|
142 | | - unsigned int irq; |
---|
143 | 138 | struct resource *cs0, *cs1; |
---|
144 | 139 | struct ata_host *host; |
---|
145 | 140 | struct ata_port *ap; |
---|
146 | 141 | struct ixp4xx_pata_data *data = dev_get_platdata(&pdev->dev); |
---|
147 | 142 | int ret; |
---|
| 143 | + int irq; |
---|
148 | 144 | |
---|
149 | 145 | cs0 = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
150 | 146 | cs1 = platform_get_resource(pdev, IORESOURCE_MEM, 1); |
---|