Skip to content

Commit

Permalink
ide-cs: use ide_std_init_ports()
Browse files Browse the repository at this point in the history
No reason to use ide_init_hwif_ports() in ide-cs (as a nice side-effect
this makes ide-cs work on archs that don't define IDE_ARCH_OBSOLETE_INIT).

Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
  • Loading branch information
bzolnier committed Feb 2, 2008
1 parent 578cfa0 commit dcb425f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/legacy/ide-cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static int idecs_register(unsigned long io, unsigned long ctl, unsigned long irq
u8 idx[4] = { 0xff, 0xff, 0xff, 0xff };

memset(&hw, 0, sizeof(hw));
ide_init_hwif_ports(&hw, io, ctl, NULL);
ide_std_init_ports(&hw, io, ctl);
hw.irq = irq;
hw.chipset = ide_pci;
hw.dev = &handle->dev;
Expand Down

0 comments on commit dcb425f

Please sign in to comment.