Skip to content

Commit

Permalink
it821x.c: use dev->revision instead of pci_read_config_byte
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brandon Philips authored and Bartlomiej Zolnierkiewicz committed Jan 14, 2009
1 parent b94b898 commit 4a24626
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/ide/it821x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4a24626

Please sign in to comment.