Skip to content

Commit

Permalink
ide: move ide_arm_init() call from init_ide_data() to ide_init()
Browse files Browse the repository at this point in the history
* Remove ide_init_port_data() call from ide_arm_init() and move
  ide_arm_init() call from init_ide_data() to ide_init().

This patch is a preparation for the future changes (and as a side-effect
makes obsolete "idex=io[,ctl[,irq]]" kernel parameters work for ide_arm).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jan 26, 2008
1 parent cbb010c commit 9440009
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion drivers/ide/arm/ide_arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ void __init ide_arm_init(void)

hwif = ide_find_port(hw.io_ports[IDE_DATA_OFFSET]);
if (hwif) {
ide_init_port_data(hwif, hwif->index);
ide_init_port_hw(hwif, &hw);
}
}
6 changes: 3 additions & 3 deletions drivers/ide/ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ static void __init init_ide_data (void)
ide_init_default_irq(hwif->io_ports[IDE_DATA_OFFSET]);
#endif
}
#ifdef CONFIG_IDE_ARM
ide_arm_init();
#endif
}

/**
Expand Down Expand Up @@ -1774,6 +1771,9 @@ static int __init ide_init(void)

proc_ide_create();

#ifdef CONFIG_IDE_ARM
ide_arm_init();
#endif
#ifdef CONFIG_BLK_DEV_ALI14XX
if (probe_ali14xx)
(void)ali14xx_init();
Expand Down

0 comments on commit 9440009

Please sign in to comment.