Skip to content

Commit 211176c

Browse files
committed
macide: use struct ide_port_info
This fixes hwif->channel and drive->dn assignments. Cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
1 parent 0e78a54 commit 211176c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎drivers/ide/macide.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ static void __init macide_setup_ports(hw_regs_t *hw, unsigned long base,
8080
hw->chipset = ide_generic;
8181
}
8282

83+
static const struct ide_port_info macide_port_info = {
84+
.host_flags = IDE_HFLAG_NO_DMA,
85+
};
86+
8387
static const char *mac_ide_name[] =
8488
{ "Quadra", "Powerbook", "Powerbook Baboon" };
8589

@@ -122,7 +126,7 @@ static int __init macide_init(void)
122126

123127
macide_setup_ports(&hw, base, irq, ack_intr);
124128

125-
return ide_host_add(NULL, hws, NULL);
129+
return ide_host_add(&macide_port_info, hws, NULL);
126130
}
127131

128132
module_init(macide_init);

0 commit comments

Comments
 (0)