diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 14:13:09 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 14:13:09 -0500 |
commit | c99c92c58757985096e2d195dc1631246d99d686 (patch) | |
tree | c1663bd62c4fbc8ebf6020ea189c74a9c5523be6 /drivers/ide/legacy/buddha.c | |
parent | 81ca691981da718727281238b435dcf1528d2fda (diff) |
ide: print banner message once per controller in m68k host drivers
* Print banner message once per controller in m68k host drivers.
* Change printk() level to KERN_INFO in buddha, falconide and gayle.
* Add banner message to q40ide.
This is basically a preparation for the future IDE layer changes.
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/legacy/buddha.c')
-rw-r--r-- | drivers/ide/legacy/buddha.c | 19 |
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 | ||
115 | static 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 | } |