diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-07-01 07:36:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-01 12:56:04 -0400 |
commit | faab17ba06d86adf5568f3e9ff914e124546d19e (patch) | |
tree | 4ffa8138f67dd002192317c4d7081b8fe516361c /drivers | |
parent | 1d7e1d4517f11ebeb80f92e227c8fdbc3215385c (diff) |
[PATCH] Fix problem with ATAPI DMA on IT8212 in Linux
Missing variable initialisation would mean it would sometimes not put ATAPI
devices into DMA by default.
Signed-off-by: Alan Cox <alan@redhat.com>
Cc: <Jack.Lee@ite.com.tw>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/pci/it821x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/pci/it821x.c b/drivers/ide/pci/it821x.c index 7fb3635683dc..3cb04424d351 100644 --- a/drivers/ide/pci/it821x.c +++ b/drivers/ide/pci/it821x.c | |||
@@ -650,6 +650,8 @@ static void __devinit init_hwif_it821x(ide_hwif_t *hwif) | |||
650 | } | 650 | } |
651 | ide_set_hwifdata(hwif, idev); | 651 | ide_set_hwifdata(hwif, idev); |
652 | 652 | ||
653 | hwif->atapi_dma = 1; | ||
654 | |||
653 | pci_read_config_byte(hwif->pci_dev, 0x50, &conf); | 655 | pci_read_config_byte(hwif->pci_dev, 0x50, &conf); |
654 | if(conf & 1) { | 656 | if(conf & 1) { |
655 | idev->smart = 1; | 657 | idev->smart = 1; |