ide: keep pointer to struct device instead of struct pci_dev in ide_hwif_t
[deliverable/linux.git] / include / linux / ide.h
index af352cc41db56cb004e82b6b98f0bba777f48201..ae965a3de9e4cc1850876854fa7c017033e93bc1 100644 (file)
@@ -503,7 +503,8 @@ typedef struct hwif_s {
 
        hwif_chipset_t chipset; /* sub-module for tuning.. */
 
-       struct pci_dev  *pci_dev;       /* for pci chipsets */
+       struct device *dev;
+
        const struct ide_port_info *cds;        /* chipset device struct */
 
        ide_ack_intr_t *ack_intr;
@@ -1299,7 +1300,7 @@ static inline void ide_dump_identify(u8 *id)
 
 static inline int hwif_to_node(ide_hwif_t *hwif)
 {
-       struct pci_dev *dev = hwif->pci_dev;
+       struct pci_dev *dev = to_pci_dev(hwif->dev);
        return dev ? pcibus_to_node(dev->bus) : -1;
 }
 
This page took 0.139462 seconds and 5 git commands to generate.