diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-01 17:09:31 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-01 17:09:31 -0500 |
commit | 36501650ec45b1db308c3b51886044863be2d762 (patch) | |
tree | 74cf9d9f313e510f8424f9bac35da8d61cce9f7b /drivers/ide/ide-probe.c | |
parent | f6fb786d6dcdd7d730e4fba620b071796f487e1b (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 'drivers/ide/ide-probe.c')
-rw-r--r-- | drivers/ide/ide-probe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index cdb81471102a..5141730dc960 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -622,8 +622,8 @@ static void hwif_register (ide_hwif_t *hwif) | |||
622 | strlcpy(hwif->gendev.bus_id,hwif->name,BUS_ID_SIZE); | 622 | strlcpy(hwif->gendev.bus_id,hwif->name,BUS_ID_SIZE); |
623 | hwif->gendev.driver_data = hwif; | 623 | hwif->gendev.driver_data = hwif; |
624 | if (hwif->gendev.parent == NULL) { | 624 | if (hwif->gendev.parent == NULL) { |
625 | if (hwif->pci_dev) | 625 | if (hwif->dev) |
626 | hwif->gendev.parent = &hwif->pci_dev->dev; | 626 | hwif->gendev.parent = hwif->dev; |
627 | else | 627 | else |
628 | /* Would like to do = &device_legacy */ | 628 | /* Would like to do = &device_legacy */ |
629 | hwif->gendev.parent = NULL; | 629 | hwif->gendev.parent = NULL; |