projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b94b898
)
it821x.c: use dev->revision instead of pci_read_config_byte
author
Brandon Philips
<brandon@ifup.org>
Wed, 14 Jan 2009 18:19:03 +0000
(19:19 +0100)
committer
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Wed, 14 Jan 2009 18:19:03 +0000
(19:19 +0100)
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>
drivers/ide/it821x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ide/it821x.c
b/drivers/ide/it821x.c
index 983440a9a5f764973bf6b2a6dafeba608a57f70b..e1c4f5437396b076bf09f55f32eed07e9ef6b9f4 100644
(file)
--- 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)