Commit 437c3b21 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] fix ide_system_bus_speed() causing "Badness in pci_find_subsys..."

Noticed by Marcel Cotta <mc123@mail.ru>.

ide_init() always initializes system_bus_speed variable
so system_bus_clock() should never call ide_system_bus_speed()
and no driver is calling ide_system_bus_speed() directly.

Bug was that if no IDE kernel parameter was given during boot
system_bus_speed will be zeroed in init_ide_data().

This patch should fix the problem
(as a bonus -> no need to zero these variables they are static).
parent c3e2569b
......@@ -302,9 +302,6 @@ static void __init init_ide_data (void)
initializing = 1;
ide_init_default_hwifs();
initializing = 0;
idebus_parameter = 0;
system_bus_speed = 0;
}
/*
......
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