forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 05e59e5fb0064c97a1c10921ecd549f2d4a58565
kernel/drivers/ide/siimage.c
....@@ -648,8 +648,7 @@
648648
649649 static void init_iops_siimage(ide_hwif_t *hwif)
650650 {
651
- struct pci_dev *dev = to_pci_dev(hwif->dev);
652
- struct ide_host *host = pci_get_drvdata(dev);
651
+ struct ide_host *host = dev_get_drvdata(hwif->dev);
653652
654653 hwif->hwif_data = NULL;
655654