diff options
author | Brandon Philips <brandon@ifup.org> | 2009-01-14 13:19:03 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-01-14 13:19:03 -0500 |
commit | 4a2462693b37da1438f53f3fbfc75e081659e975 (patch) | |
tree | 8bc91a096f59594613fdb92876348f473a71a812 /drivers | |
parent | b94b898f3107046b5c97c556e23529283ea5eadd (diff) |
it821x.c: use dev->revision instead of pci_read_config_byte
Minor cleanup.
Signed-off-by: Brandon Philips <bphilips@suse.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Shawn Lin <shawn@dmp.com.tw>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/it821x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/it821x.c b/drivers/ide/it821x.c index 983440a9a5f7..e1c4f5437396 100644 --- a/drivers/ide/it821x.c +++ b/drivers/ide/it821x.c | |||
@@ -560,8 +560,7 @@ static void __devinit init_hwif_it821x(ide_hwif_t *hwif) | |||
560 | * this is necessary. | 560 | * this is necessary. |
561 | */ | 561 | */ |
562 | 562 | ||
563 | pci_read_config_byte(dev, 0x08, &conf); | 563 | if (dev->revision == 0x10) { |
564 | if (conf == 0x10) { | ||
565 | idev->timing10 = 1; | 564 | idev->timing10 = 1; |
566 | hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA; | 565 | hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA; |
567 | if (idev->smart == 0) | 566 | if (idev->smart == 0) |