hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/ide/via82cxxx.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * VIA IDE driver for Linux. Supported southbridges:
34 *
....@@ -18,11 +19,6 @@
1819 * Current device documentation available under NDA only
1920 */
2021
21
-/*
22
- * This program is free software; you can redistribute it and/or modify it
23
- * under the terms of the GNU General Public License version 2 as published by
24
- * the Free Software Foundation.
25
- */
2622
2723 #include <linux/module.h>
2824 #include <linux/kernel.h>
....@@ -179,8 +175,7 @@
179175 static void via_set_drive(ide_hwif_t *hwif, ide_drive_t *drive)
180176 {
181177 ide_drive_t *peer = ide_get_pair_dev(drive);
182
- struct pci_dev *dev = to_pci_dev(hwif->dev);
183
- struct ide_host *host = pci_get_drvdata(dev);
178
+ struct ide_host *host = dev_get_drvdata(hwif->dev);
184179 struct via82cxxx_dev *vdev = host->host_priv;
185180 struct ide_timing t, p;
186181 unsigned int T, UT;