Skip to content

Commit

Permalink
au1xxx-ide: fix ->io_32bit handling
Browse files Browse the repository at this point in the history
The host driver must set hwif's ->no_io_32bit setting not drive's one
(ide_port_tune_devices() overrides drive's setting).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Feb 2, 2008
1 parent 36e9dc4 commit bd38dd3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/ide/mips/au1xxx-ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,7 @@ static int au_ide_probe(struct device *dev)
hwif->drives[0].autotune = 1; /* 1=autotune, 2=noautotune, 0=default */
hwif->drives[1].autotune = 1;

hwif->drives[0].no_io_32bit = 1;
hwif->drives[1].no_io_32bit = 1;
hwif->no_io_32bit = 1;

auide_hwif.hwif = hwif;
hwif->hwif_data = &auide_hwif;
Expand Down

0 comments on commit bd38dd3

Please sign in to comment.