Skip to content

Commit

Permalink
ide: remove redundant init_hwif_default() call from ide_register_hw()
Browse files Browse the repository at this point in the history
ide_init_port_hw() call overrides setup done by init_hwif_default().

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Feb 2, 2008
1 parent 2244e85 commit ead741d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/ide/ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,10 +716,8 @@ int ide_register_hw(hw_regs_t *hw, void (*quirkproc)(ide_drive_t *),
found:
if (hwif->present)
ide_unregister(index);
else if (!hwif->hold) {
else if (!hwif->hold)
ide_init_port_data(hwif, index);
init_hwif_default(hwif, index);
}

ide_init_port_hw(hwif, hw);
hwif->quirkproc = quirkproc;
Expand Down

0 comments on commit ead741d

Please sign in to comment.