Commit 4a246269 authored by Brandon Philips's avatar Brandon Philips Committed by Bartlomiej Zolnierkiewicz

it821x.c: use dev->revision instead of pci_read_config_byte

Minor cleanup.
Signed-off-by: default avatarBrandon Philips <bphilips@suse.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Shawn Lin <shawn@dmp.com.tw>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent b94b898f
...@@ -560,8 +560,7 @@ static void __devinit init_hwif_it821x(ide_hwif_t *hwif) ...@@ -560,8 +560,7 @@ static void __devinit init_hwif_it821x(ide_hwif_t *hwif)
* this is necessary. * this is necessary.
*/ */
pci_read_config_byte(dev, 0x08, &conf); if (dev->revision == 0x10) {
if (conf == 0x10) {
idev->timing10 = 1; idev->timing10 = 1;
hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA; hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA;
if (idev->smart == 0) if (idev->smart == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment