diff options
Diffstat (limited to 'drivers/ide/pci/trm290.c')
-rw-r--r-- | drivers/ide/pci/trm290.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/pci/trm290.c b/drivers/ide/pci/trm290.c index 7b0338890699..0a29d508168f 100644 --- a/drivers/ide/pci/trm290.c +++ b/drivers/ide/pci/trm290.c | |||
@@ -245,7 +245,7 @@ static void trm290_dma_host_set(ide_drive_t *drive, int on) | |||
245 | 245 | ||
246 | static void __devinit init_hwif_trm290(ide_hwif_t *hwif) | 246 | static void __devinit init_hwif_trm290(ide_hwif_t *hwif) |
247 | { | 247 | { |
248 | struct pci_dev *dev = hwif->pci_dev; | 248 | struct pci_dev *dev = to_pci_dev(hwif->dev); |
249 | unsigned int cfg_base = pci_resource_start(dev, 4); | 249 | unsigned int cfg_base = pci_resource_start(dev, 4); |
250 | unsigned long flags; | 250 | unsigned long flags; |
251 | u8 reg = 0; | 251 | u8 reg = 0; |