diff options
Diffstat (limited to 'drivers/ide/pci/hpt34x.c')
-rw-r--r-- | drivers/ide/pci/hpt34x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/pci/hpt34x.c b/drivers/ide/pci/hpt34x.c index dfba0d13fcd3..25dbb814822d 100644 --- a/drivers/ide/pci/hpt34x.c +++ b/drivers/ide/pci/hpt34x.c | |||
@@ -1,7 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * linux/drivers/ide/pci/hpt34x.c Version 0.40 Sept 10, 2002 | ||
3 | * | ||
4 | * Copyright (C) 1998-2000 Andre Hedrick <andre@linux-ide.org> | 2 | * Copyright (C) 1998-2000 Andre Hedrick <andre@linux-ide.org> |
3 | * | ||
5 | * May be copied or modified under the terms of the GNU General Public License | 4 | * May be copied or modified under the terms of the GNU General Public License |
6 | * | 5 | * |
7 | * | 6 | * |
@@ -45,7 +44,7 @@ | |||
45 | 44 | ||
46 | static void hpt34x_set_mode(ide_drive_t *drive, const u8 speed) | 45 | static void hpt34x_set_mode(ide_drive_t *drive, const u8 speed) |
47 | { | 46 | { |
48 | struct pci_dev *dev = HWIF(drive)->pci_dev; | 47 | struct pci_dev *dev = to_pci_dev(drive->hwif->dev); |
49 | u32 reg1= 0, tmp1 = 0, reg2 = 0, tmp2 = 0; | 48 | u32 reg1= 0, tmp1 = 0, reg2 = 0, tmp2 = 0; |
50 | u8 hi_speed, lo_speed; | 49 | u8 hi_speed, lo_speed; |
51 | 50 | ||
@@ -131,6 +130,7 @@ static void __devinit init_hwif_hpt34x(ide_hwif_t *hwif) | |||
131 | 130 | ||
132 | #define IDE_HFLAGS_HPT34X \ | 131 | #define IDE_HFLAGS_HPT34X \ |
133 | (IDE_HFLAG_NO_ATAPI_DMA | \ | 132 | (IDE_HFLAG_NO_ATAPI_DMA | \ |
133 | IDE_HFLAG_NO_DSC | \ | ||
134 | IDE_HFLAG_ABUSE_SET_DMA_MODE | \ | 134 | IDE_HFLAG_ABUSE_SET_DMA_MODE | \ |
135 | IDE_HFLAG_NO_AUTODMA) | 135 | IDE_HFLAG_NO_AUTODMA) |
136 | 136 | ||