aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/h8300
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/h8300')
-rw-r--r--drivers/ide/h8300/ide-h8300.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/h8300/ide-h8300.c b/drivers/ide/h8300/ide-h8300.c
index ff6a98afefb7..c445298f7eb8 100644
--- a/drivers/ide/h8300/ide-h8300.c
+++ b/drivers/ide/h8300/ide-h8300.c
@@ -8,6 +8,8 @@
8#include <asm/io.h> 8#include <asm/io.h>
9#include <asm/irq.h> 9#include <asm/irq.h>
10 10
11#define DRV_NAME "ide-h8300"
12
11#define bswap(d) \ 13#define bswap(d) \
12({ \ 14({ \
13 u16 r; \ 15 u16 r; \
@@ -196,11 +198,9 @@ static int __init h8300_ide_init(void)
196 198
197 hw_setup(&hw); 199 hw_setup(&hw);
198 200
199 hwif = ide_find_port(); 201 hwif = ide_find_port_slot(&h8300_port_info);
200 if (hwif == NULL) { 202 if (hwif == NULL)
201 printk(KERN_ERR "ide-h8300: IDE I/F register failed\n");
202 return -ENOENT; 203 return -ENOENT;
203 }
204 204
205 index = hwif->index; 205 index = hwif->index;
206 ide_init_port_hw(hwif, &hw); 206 ide_init_port_hw(hwif, &hw);