forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/ata/pata_ixp4xx_cf.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ixp4xx PATA/Compact Flash driver
34 * Copyright (C) 2006-07 Tower Technologies
....@@ -9,11 +10,6 @@
910 * on the ixp4xx. In the irq is not available, you might
1011 * want to modify both this driver and libata to run in
1112 * 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
- *
1713 */
1814
1915 #include <linux/kernel.h>
....@@ -139,12 +135,12 @@
139135
140136 static int ixp4xx_pata_probe(struct platform_device *pdev)
141137 {
142
- unsigned int irq;
143138 struct resource *cs0, *cs1;
144139 struct ata_host *host;
145140 struct ata_port *ap;
146141 struct ixp4xx_pata_data *data = dev_get_platdata(&pdev->dev);
147142 int ret;
143
+ int irq;
148144
149145 cs0 = platform_get_resource(pdev, IORESOURCE_MEM, 0);
150146 cs1 = platform_get_resource(pdev, IORESOURCE_MEM, 1);