aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/h8300/ide-h8300.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/h8300/ide-h8300.c')
-rw-r--r--drivers/ide/h8300/ide-h8300.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/ide/h8300/ide-h8300.c b/drivers/ide/h8300/ide-h8300.c
index 15f76690a48c..bde7a585f198 100644
--- a/drivers/ide/h8300/ide-h8300.c
+++ b/drivers/ide/h8300/ide-h8300.c
@@ -191,7 +191,6 @@ static const struct ide_port_info h8300_port_info = {
191 191
192static int __init h8300_ide_init(void) 192static int __init h8300_ide_init(void)
193{ 193{
194 struct ide_host *host;
195 hw_regs_t hw, *hws[] = { &hw, NULL, NULL, NULL }; 194 hw_regs_t hw, *hws[] = { &hw, NULL, NULL, NULL };
196 195
197 printk(KERN_INFO DRV_NAME ": H8/300 generic IDE interface\n"); 196 printk(KERN_INFO DRV_NAME ": H8/300 generic IDE interface\n");
@@ -205,13 +204,7 @@ static int __init h8300_ide_init(void)
205 204
206 hw_setup(&hw); 205 hw_setup(&hw);
207 206
208 host = ide_host_alloc(&h8300_port_info, hws); 207 return ide_host_add(&h8300_port_info, hws, NULL);
209 if (host == NULL)
210 return -ENOENT;
211
212 ide_host_register(host, &h8300_port_info, hws);
213
214 return 0;
215 208
216out_busy: 209out_busy:
217 printk(KERN_ERR "ide-h8300: IDE I/F resource already used.\n"); 210 printk(KERN_ERR "ide-h8300: IDE I/F resource already used.\n");