forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 95099d4622f8cb224d94e314c7a8e0df60b13f87
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