aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ppc/pmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ppc/pmac.c')
-rw-r--r--drivers/ide/ppc/pmac.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ide/ppc/pmac.c b/drivers/ide/ppc/pmac.c
index 4e2944ee76d8..e68e33bb2c35 100644
--- a/drivers/ide/ppc/pmac.c
+++ b/drivers/ide/ppc/pmac.c
@@ -1010,6 +1010,7 @@ static int __devinit pmac_ide_setup_device(pmac_ide_hwif_t *pmif, hw_regs_t *hw)
1010 struct device_node *np = pmif->node; 1010 struct device_node *np = pmif->node;
1011 const int *bidp; 1011 const int *bidp;
1012 ide_hwif_t *hwif; 1012 ide_hwif_t *hwif;
1013 hw_regs_t *hws[] = { hw, NULL, NULL, NULL };
1013 u8 idx[4] = { 0xff, 0xff, 0xff, 0xff }; 1014 u8 idx[4] = { 0xff, 0xff, 0xff, 0xff };
1014 struct ide_port_info d = pmac_port_info; 1015 struct ide_port_info d = pmac_port_info;
1015 1016
@@ -1095,11 +1096,9 @@ static int __devinit pmac_ide_setup_device(pmac_ide_hwif_t *pmif, hw_regs_t *hw)
1095 default_hwif_mmiops(hwif); 1096 default_hwif_mmiops(hwif);
1096 hwif->OUTBSYNC = pmac_outbsync; 1097 hwif->OUTBSYNC = pmac_outbsync;
1097 1098
1098 ide_init_port_hw(hwif, hw);
1099
1100 idx[0] = hwif->index; 1099 idx[0] = hwif->index;
1101 1100
1102 ide_device_add(idx, &d); 1101 ide_device_add(idx, &d, hws);
1103 1102
1104 return 0; 1103 return 0;
1105} 1104}