diff options
author | Paul Mackerras <paulus@samba.org> | 2007-05-10 07:08:37 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-10 07:08:37 -0400 |
commit | 2ecf042ef530dd0943e41d84b6344f507941af3e (patch) | |
tree | 73100361dd74e3f80f14c7c81ba4675948983f44 /drivers/ide/cris/ide-cris.c | |
parent | 32a56ebb24f23da1bbaf24292acf85b6c04526ab (diff) | |
parent | de5603748af8bf7deac403e6ba92887f8d18e812 (diff) |
Merge branch 'linux-2.6'
Diffstat (limited to 'drivers/ide/cris/ide-cris.c')
-rw-r--r-- | drivers/ide/cris/ide-cris.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/cris/ide-cris.c b/drivers/ide/cris/ide-cris.c index 5e8efc89255a..c04cb25a01ff 100644 --- a/drivers/ide/cris/ide-cris.c +++ b/drivers/ide/cris/ide-cris.c | |||
@@ -796,7 +796,7 @@ init_e100_ide (void) | |||
796 | ide_offsets, | 796 | ide_offsets, |
797 | 0, 0, cris_ide_ack_intr, | 797 | 0, 0, cris_ide_ack_intr, |
798 | ide_default_irq(0)); | 798 | ide_default_irq(0)); |
799 | ide_register_hw(&hw, &hwif); | 799 | ide_register_hw(&hw, 1, &hwif); |
800 | hwif->mmio = 1; | 800 | hwif->mmio = 1; |
801 | hwif->chipset = ide_etrax100; | 801 | hwif->chipset = ide_etrax100; |
802 | hwif->tuneproc = &tune_cris_ide; | 802 | hwif->tuneproc = &tune_cris_ide; |
@@ -1004,7 +1004,7 @@ static int cris_ide_build_dmatable (ide_drive_t *drive) | |||
1004 | 1004 | ||
1005 | static int cris_config_drive_for_dma (ide_drive_t *drive) | 1005 | static int cris_config_drive_for_dma (ide_drive_t *drive) |
1006 | { | 1006 | { |
1007 | u8 speed = ide_dma_speed(drive, 1); | 1007 | u8 speed = ide_max_dma_mode(drive); |
1008 | 1008 | ||
1009 | if (!speed) | 1009 | if (!speed) |
1010 | return 0; | 1010 | return 0; |