aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/buddha.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:18 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:18 -0400
commit0e78a54fbd574be9da7a49190f7927a656a936c0 (patch)
tree9fc3c5dd5d53e9f95eea34c5d77b75ae18e2a28f /drivers/ide/buddha.c
parentee1464a4e8883304d6408ddceb4e966068afa2be (diff)
buddha: 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>
Diffstat (limited to 'drivers/ide/buddha.c')
-rw-r--r--drivers/ide/buddha.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/ide/buddha.c b/drivers/ide/buddha.c
index c5a3c9ef6a5d..c0fa76148d46 100644
--- a/drivers/ide/buddha.c
+++ b/drivers/ide/buddha.c
@@ -143,6 +143,10 @@ static void __init buddha_setup_ports(hw_regs_t *hw, unsigned long base,
143 hw->chipset = ide_generic; 143 hw->chipset = ide_generic;
144} 144}
145 145
146static const struct ide_port_info buddha_port_info = {
147 .host_flags = IDE_HFLAG_NO_DMA,
148};
149
146 /* 150 /*
147 * Probe for a Buddha or Catweasel IDE interface 151 * Probe for a Buddha or Catweasel IDE interface
148 */ 152 */
@@ -224,7 +228,7 @@ fail_base2:
224 hws[i] = &hw[i]; 228 hws[i] = &hw[i];
225 } 229 }
226 230
227 ide_host_add(NULL, hws, NULL); 231 ide_host_add(&buddha_port_info, hws, NULL);
228 } 232 }
229 233
230 return 0; 234 return 0;