mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-16 02:14:58 +00:00
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>
This commit is contained in:
parent
b94b898f31
commit
4a2462693b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user