]> git.neil.brown.name Git - history.git/commit
[PATCH] fix ide_system_bus_speed() causing "Badness in pci_find_subsys..."
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>
Thu, 26 Feb 2004 04:49:23 +0000 (20:49 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 26 Feb 2004 04:49:23 +0000 (20:49 -0800)
commit437c3b217c9b77ba135a94ee1ed67eaa15b5d954
tree0143e378d3a6e426e68f843499eb5c6cc02e025f
parentc3e2569bd96594b5981154034e0b60d3cafa7f69
[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).
drivers/ide/ide.c