Skip to content

Commit

Permalink
buddha: use struct ide_port_info
Browse files Browse the repository at this point in the history
This fixes hwif->channel and drive->dn assignments.

Cc: Geert Uytterhoeven <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
  • Loading branch information
bzolnier committed Mar 27, 2009
1 parent ee1464a commit 0e78a54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/ide/buddha.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ static void __init buddha_setup_ports(hw_regs_t *hw, unsigned long base,
hw->chipset = ide_generic;
}

static const struct ide_port_info buddha_port_info = {
.host_flags = IDE_HFLAG_NO_DMA,
};

/*
* Probe for a Buddha or Catweasel IDE interface
*/
Expand Down Expand Up @@ -224,7 +228,7 @@ static int __init buddha_init(void)
hws[i] = &hw[i];
}

ide_host_add(NULL, hws, NULL);
ide_host_add(&buddha_port_info, hws, NULL);
}

return 0;
Expand Down

0 comments on commit 0e78a54

Please sign in to comment.