| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * VIA IDE driver for Linux. Supported southbridges: |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 18 | 19 | * Current device documentation available under NDA only |
|---|
| 19 | 20 | */ |
|---|
| 20 | 21 | |
|---|
| 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 | | - */ |
|---|
| 26 | 22 | |
|---|
| 27 | 23 | #include <linux/module.h> |
|---|
| 28 | 24 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 179 | 175 | static void via_set_drive(ide_hwif_t *hwif, ide_drive_t *drive) |
|---|
| 180 | 176 | { |
|---|
| 181 | 177 | 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); |
|---|
| 184 | 179 | struct via82cxxx_dev *vdev = host->host_priv; |
|---|
| 185 | 180 | struct ide_timing t, p; |
|---|
| 186 | 181 | unsigned int T, UT; |
|---|