Skip to content

Commit f81eb80

Browse files
committed
ide-h8300: use struct ide_port_info
Convert the driver to use struct ide_port_info. There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
1 parent 9a5ae1f commit f81eb80

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎drivers/ide/h8300/ide-h8300.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ static inline void hwif_setup(ide_hwif_t *hwif)
176176
hwif->output_data = h8300_output_data;
177177
}
178178

179+
static const struct ide_port_info h8300_port_info = {
180+
.host_flags = IDE_HFLAG_NO_IO_32BIT | IDE_HFLAG_NO_DMA,
181+
};
182+
179183
static int __init h8300_ide_init(void)
180184
{
181185
hw_regs_t hw;
@@ -201,12 +205,11 @@ static int __init h8300_ide_init(void)
201205
index = hwif->index;
202206
ide_init_port_hw(hwif, &hw);
203207
hwif_setup(hwif);
204-
hwif->host_flags = IDE_HFLAG_NO_IO_32BIT;
205208
printk(KERN_INFO "ide%d: H8/300 generic IDE interface\n", index);
206209

207210
idx[0] = index;
208211

209-
ide_device_add(idx, NULL);
212+
ide_device_add(idx, &h8300_port_info);
210213

211214
return 0;
212215

0 commit comments

Comments
 (0)