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/macide.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/macide.c')
-rw-r--r-- | drivers/ide/legacy/macide.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/ide/legacy/macide.c b/drivers/ide/legacy/macide.c index 6b3e960350aa..782d4c76c0e5 100644 --- a/drivers/ide/legacy/macide.c +++ b/drivers/ide/legacy/macide.c | |||
@@ -77,6 +77,9 @@ int macide_ack_intr(ide_hwif_t* hwif) | |||
77 | return 0; | 77 | return 0; |
78 | } | 78 | } |
79 | 79 | ||
80 | static const char *mac_ide_name[] = | ||
81 | { "Quadra", "Powerbook", "Powerbook Baboon" }; | ||
82 | |||
80 | /* | 83 | /* |
81 | * Probe for a Macintosh IDE interface | 84 | * Probe for a Macintosh IDE interface |
82 | */ | 85 | */ |
@@ -109,6 +112,9 @@ static int __init macide_init(void) | |||
109 | return -ENODEV; | 112 | return -ENODEV; |
110 | } | 113 | } |
111 | 114 | ||
115 | printk(KERN_INFO "ide: Macintosh %s IDE controller\n", | ||
116 | mac_ide_name[macintosh_config->ide_type - 1]); | ||
117 | |||
112 | hwif = ide_find_port(hw.io_ports[IDE_DATA_OFFSET]); | 118 | hwif = ide_find_port(hw.io_ports[IDE_DATA_OFFSET]); |
113 | if (hwif) { | 119 | if (hwif) { |
114 | u8 index = hwif->index; | 120 | u8 index = hwif->index; |
@@ -128,14 +134,6 @@ static int __init macide_init(void) | |||
128 | } | 134 | } |
129 | 135 | ||
130 | hwif->mmio = 1; | 136 | hwif->mmio = 1; |
131 | if (macintosh_config->ide_type == MAC_IDE_QUADRA) | ||
132 | printk(KERN_INFO "ide%d: Macintosh Quadra IDE interface\n", index); | ||
133 | else if (macintosh_config->ide_type == MAC_IDE_PB) | ||
134 | printk(KERN_INFO "ide%d: Macintosh Powerbook IDE interface\n", index); | ||
135 | else if (macintosh_config->ide_type == MAC_IDE_BABOON) | ||
136 | printk(KERN_INFO "ide%d: Macintosh Powerbook Baboon IDE interface\n", index); | ||
137 | else | ||
138 | printk(KERN_INFO "ide%d: Unknown Macintosh IDE interface\n", index); | ||
139 | 137 | ||
140 | ide_device_add(idx); | 138 | ide_device_add(idx); |
141 | } | 139 | } |