aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/legacy/buddha.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/legacy/buddha.c')
-rw-r--r--drivers/ide/legacy/buddha.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/drivers/ide/legacy/buddha.c b/drivers/ide/legacy/buddha.c
index e97766aef374..74d28e058f55 100644
--- a/drivers/ide/legacy/buddha.c
+++ b/drivers/ide/legacy/buddha.c
@@ -112,6 +112,7 @@ typedef enum BuddhaType_Enum {
112 BOARD_BUDDHA, BOARD_CATWEASEL, BOARD_XSURF 112 BOARD_BUDDHA, BOARD_CATWEASEL, BOARD_XSURF
113} BuddhaType; 113} BuddhaType;
114 114
115static const char *buddha_board_name[] = { "Buddha", "Catweasel", "X-Surf" };
115 116
116 /* 117 /*
117 * Check and acknowledge the interrupt status 118 * Check and acknowledge the interrupt status
@@ -197,7 +198,10 @@ fail_base2:
197 /* X-Surf doesn't have this. IRQs are always on */ 198 /* X-Surf doesn't have this. IRQs are always on */
198 if (type != BOARD_XSURF) 199 if (type != BOARD_XSURF)
199 z_writeb(0, buddha_board+BUDDHA_IRQ_MR); 200 z_writeb(0, buddha_board+BUDDHA_IRQ_MR);
200 201
202 printk(KERN_INFO "ide: %s IDE controller\n",
203 buddha_board_name[type]);
204
201 for(i=0;i<buddha_num_hwifs;i++) { 205 for(i=0;i<buddha_num_hwifs;i++) {
202 if(type != BOARD_XSURF) { 206 if(type != BOARD_XSURF) {
203 ide_setup_ports(&hw, (buddha_board+buddha_bases[i]), 207 ide_setup_ports(&hw, (buddha_board+buddha_bases[i]),
@@ -223,19 +227,6 @@ fail_base2:
223 ide_init_port_hw(hwif, &hw); 227 ide_init_port_hw(hwif, &hw);
224 228
225 hwif->mmio = 1; 229 hwif->mmio = 1;
226 printk("ide%d: ", index);
227 switch(type) {
228 case BOARD_BUDDHA:
229 printk("Buddha");
230 break;
231 case BOARD_CATWEASEL:
232 printk("Catweasel");
233 break;
234 case BOARD_XSURF:
235 printk("X-Surf");
236 break;
237 }
238 printk(" IDE interface\n");
239 230
240 idx[i] = index; 231 idx[i] = index;
241 } 232 }