Commit f727aff5 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Jeff Garzik

[PATCH] ide: tiny cleanup of ide_init(), it is called only _once_

parent 4e33fe51
...@@ -2593,13 +2593,9 @@ struct bus_type ide_bus_type = { ...@@ -2593,13 +2593,9 @@ struct bus_type ide_bus_type = {
*/ */
int __init ide_init (void) int __init ide_init (void)
{ {
static char banner_printed; printk(KERN_INFO "Uniform Multi-Platform E-IDE driver " REVISION "\n");
if (!banner_printed) { devfs_mk_dir("ide");
printk(KERN_INFO "Uniform Multi-Platform E-IDE driver " REVISION "\n"); system_bus_speed = ide_system_bus_speed();
devfs_mk_dir("ide");
system_bus_speed = ide_system_bus_speed();
banner_printed = 1;
}
bus_register(&ide_bus_type); bus_register(&ide_bus_type);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment