aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/amd74xx.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-03 16:58:49 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-03 16:58:49 -0400
commit9d7542f891f22d16ea1465d19d253888e87f7ad6 (patch)
tree5038aa63019138b2e09fa31a53b562bfb77e428c /drivers/ide/pci/amd74xx.c
parentf744a0547ac5055a3e9eb20bfe7ff29077a32c16 (diff)
parentd61bcce9c1aa2c9f8a768d73c4c517f81d226725 (diff)
Merge master.kernel.org:/pub/scm/linux/kernel/git/bart/ide-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/bart/ide-2.6: ide: ide_scan_pcibus(): check __pci_register_driver return value ide: pdc202xx_new PLL input clock fix it821x: fix incorrect SWDMA mask amd74xx: resume fix hpt366: use correct enablebits for HPT36x hpt366: blacklist MAXTOR STM3320620A for UltraDMA/66 ide: Fix a theoretical Ooops case ide: never called printk statement in ide-taskfile.c::wait_drive_not_busy
Diffstat (limited to 'drivers/ide/pci/amd74xx.c')
-rw-r--r--drivers/ide/pci/amd74xx.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/ide/pci/amd74xx.c b/drivers/ide/pci/amd74xx.c
index 9db1be826e80..a2be65fcf89c 100644
--- a/drivers/ide/pci/amd74xx.c
+++ b/drivers/ide/pci/amd74xx.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Version 2.15 2 * Version 2.16
3 * 3 *
4 * AMD 755/756/766/8111 and nVidia nForce/2/2s/3/3s/CK804/MCP04 4 * AMD 755/756/766/8111 and nVidia nForce/2/2s/3/3s/CK804/MCP04
5 * IDE driver for Linux. 5 * IDE driver for Linux.
@@ -244,10 +244,8 @@ static int amd_set_drive(ide_drive_t *drive, u8 speed)
244 struct ide_timing t, p; 244 struct ide_timing t, p;
245 int T, UT; 245 int T, UT;
246 246
247 if (speed != XFER_PIO_SLOW && speed != drive->current_speed) 247 if (speed != XFER_PIO_SLOW)
248 if (ide_config_drive_speed(drive, speed)) 248 ide_config_drive_speed(drive, speed);
249 printk(KERN_WARNING "ide%d: Drive %d didn't accept speed setting. Oh, well.\n",
250 drive->dn >> 1, drive->dn & 1);
251 249
252 T = 1000000000 / amd_clock; 250 T = 1000000000 / amd_clock;
253 UT = T / min_t(int, max_t(int, amd_config->flags & AMD_UDMA, 1), 2); 251 UT = T / min_t(int, max_t(int, amd_config->flags & AMD_UDMA, 1), 2);