diff options
Diffstat (limited to 'drivers/ide/pci/amd74xx.c')
-rw-r--r-- | drivers/ide/pci/amd74xx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/pci/amd74xx.c b/drivers/ide/pci/amd74xx.c index 824471f91bf5..81ec73134eda 100644 --- a/drivers/ide/pci/amd74xx.c +++ b/drivers/ide/pci/amd74xx.c | |||
@@ -92,7 +92,7 @@ static void amd_set_drive(ide_drive_t *drive, const u8 speed) | |||
92 | 92 | ||
93 | ide_timing_compute(drive, speed, &t, T, UT); | 93 | ide_timing_compute(drive, speed, &t, T, UT); |
94 | 94 | ||
95 | if (peer->present) { | 95 | if (peer->dev_flags & IDE_DFLAG_PRESENT) { |
96 | ide_timing_compute(peer, peer->current_speed, &p, T, UT); | 96 | ide_timing_compute(peer, peer->current_speed, &p, T, UT); |
97 | ide_timing_merge(&p, &t, &t, IDE_TIMING_8BIT); | 97 | ide_timing_merge(&p, &t, &t, IDE_TIMING_8BIT); |
98 | } | 98 | } |
@@ -319,7 +319,7 @@ static const struct pci_device_id amd74xx_pci_tbl[] = { | |||
319 | }; | 319 | }; |
320 | MODULE_DEVICE_TABLE(pci, amd74xx_pci_tbl); | 320 | MODULE_DEVICE_TABLE(pci, amd74xx_pci_tbl); |
321 | 321 | ||
322 | static struct pci_driver driver = { | 322 | static struct pci_driver amd74xx_pci_driver = { |
323 | .name = "AMD_IDE", | 323 | .name = "AMD_IDE", |
324 | .id_table = amd74xx_pci_tbl, | 324 | .id_table = amd74xx_pci_tbl, |
325 | .probe = amd74xx_probe, | 325 | .probe = amd74xx_probe, |
@@ -330,12 +330,12 @@ static struct pci_driver driver = { | |||
330 | 330 | ||
331 | static int __init amd74xx_ide_init(void) | 331 | static int __init amd74xx_ide_init(void) |
332 | { | 332 | { |
333 | return ide_pci_register_driver(&driver); | 333 | return ide_pci_register_driver(&amd74xx_pci_driver); |
334 | } | 334 | } |
335 | 335 | ||
336 | static void __exit amd74xx_ide_exit(void) | 336 | static void __exit amd74xx_ide_exit(void) |
337 | { | 337 | { |
338 | pci_unregister_driver(&driver); | 338 | pci_unregister_driver(&amd74xx_pci_driver); |
339 | } | 339 | } |
340 | 340 | ||
341 | module_init(amd74xx_ide_init); | 341 | module_init(amd74xx_ide_init); |