From: Brandon Philips Date: Wed, 14 Jan 2009 18:19:03 +0000 (+0100) Subject: it821x.c: use dev->revision instead of pci_read_config_byte X-Git-Tag: v2.6.29-rc2~81^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a2462693b37da1438f53f3fbfc75e081659e975;p=platform%2Fkernel%2Flinux-3.10.git it821x.c: use dev->revision instead of pci_read_config_byte Minor cleanup. Signed-off-by: Brandon Philips Cc: Alan Cox Cc: Shawn Lin Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/it821x.c b/drivers/ide/it821x.c index 983440a..e1c4f54 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) * this is necessary. */ - pci_read_config_byte(dev, 0x08, &conf); - if (conf == 0x10) { + if (dev->revision == 0x10) { idev->timing10 = 1; hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA; if (idev->smart == 0)