aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-01 17:09:31 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-01 17:09:31 -0500
commit36501650ec45b1db308c3b51886044863be2d762 (patch)
tree74cf9d9f313e510f8424f9bac35da8d61cce9f7b /include/linux/ide.h
parentf6fb786d6dcdd7d730e4fba620b071796f487e1b (diff)
ide: keep pointer to struct device instead of struct pci_dev in ide_hwif_t
Keep pointer to struct device instead of struct pci_dev in ide_hwif_t. While on it: * Use *dev->dma_mask instead of pci_dev->dma_mask in ide_toggle_bounce(). There should be no functionality changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index af352cc41db5..ae965a3de9e4 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -503,7 +503,8 @@ typedef struct hwif_s {
503 503
504 hwif_chipset_t chipset; /* sub-module for tuning.. */ 504 hwif_chipset_t chipset; /* sub-module for tuning.. */
505 505
506 struct pci_dev *pci_dev; /* for pci chipsets */ 506 struct device *dev;
507
507 const struct ide_port_info *cds; /* chipset device struct */ 508 const struct ide_port_info *cds; /* chipset device struct */
508 509
509 ide_ack_intr_t *ack_intr; 510 ide_ack_intr_t *ack_intr;
@@ -1299,7 +1300,7 @@ static inline void ide_dump_identify(u8 *id)
1299 1300
1300static inline int hwif_to_node(ide_hwif_t *hwif) 1301static inline int hwif_to_node(ide_hwif_t *hwif)
1301{ 1302{
1302 struct pci_dev *dev = hwif->pci_dev; 1303 struct pci_dev *dev = to_pci_dev(hwif->dev);
1303 return dev ? pcibus_to_node(dev->bus) : -1; 1304 return dev ? pcibus_to_node(dev->bus) : -1;
1304} 1305}
1305 1306