forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
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