diff options
Diffstat (limited to 'drivers/ide/arm')
-rw-r--r-- | drivers/ide/arm/bast-ide.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/ide/arm/bast-ide.c b/drivers/ide/arm/bast-ide.c index 0e7574c0ee60..161d30c8481e 100644 --- a/drivers/ide/arm/bast-ide.c +++ b/drivers/ide/arm/bast-ide.c | |||
@@ -21,12 +21,7 @@ | |||
21 | #include <asm/arch/bast-map.h> | 21 | #include <asm/arch/bast-map.h> |
22 | #include <asm/arch/bast-irq.h> | 22 | #include <asm/arch/bast-irq.h> |
23 | 23 | ||
24 | /* list of registered interfaces */ | 24 | static int __init bastide_register(unsigned int base, unsigned int aux, int irq) |
25 | static ide_hwif_t *ifs[2]; | ||
26 | |||
27 | static int __init | ||
28 | bastide_register(unsigned int base, unsigned int aux, int irq, | ||
29 | ide_hwif_t **hwif) | ||
30 | { | 25 | { |
31 | ide_hwif_t *hwif; | 26 | ide_hwif_t *hwif; |
32 | hw_regs_t hw; | 27 | hw_regs_t hw; |
@@ -76,8 +71,9 @@ static int __init bastide_init(void) | |||
76 | 71 | ||
77 | printk("BAST: IDE driver, (c) 2003-2004 Simtec Electronics\n"); | 72 | printk("BAST: IDE driver, (c) 2003-2004 Simtec Electronics\n"); |
78 | 73 | ||
79 | bastide_register(BAST_VA_IDEPRI, BAST_VA_IDEPRIAUX, IRQ_IDE0, &ifs[0]); | 74 | bastide_register(BAST_VA_IDEPRI, BAST_VA_IDEPRIAUX, IRQ_IDE0); |
80 | bastide_register(BAST_VA_IDESEC, BAST_VA_IDESECAUX, IRQ_IDE1, &ifs[1]); | 75 | bastide_register(BAST_VA_IDESEC, BAST_VA_IDESECAUX, IRQ_IDE1); |
76 | |||
81 | return 0; | 77 | return 0; |
82 | } | 78 | } |
83 | 79 | ||