lkml.org 
[lkml]   [2003]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [PATCH] Yet more PCI fixes for 2.5.70
From
Date
ChangeSet 1.1388, 2003/06/10 10:30:57-07:00, greg@kroah.com

[PATCH] PCI: remove pci_for_each_bus() usage from drivers/pci/pci.c


drivers/pci/pci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/drivers/pci/pci.c b/drivers/pci/pci.c
--- a/drivers/pci/pci.c Tue Jun 10 11:15:38 2003
+++ b/drivers/pci/pci.c Tue Jun 10 11:15:38 2003
@@ -55,11 +55,11 @@
unsigned char __devinit
pci_max_busnr(void)
{
- struct pci_bus* bus;
+ struct pci_bus *bus = NULL;
unsigned char max, n;

max = 0;
- pci_for_each_bus(bus) {
+ while ((bus = pci_find_next_bus(bus)) != NULL) {
n = pci_bus_max_busnr(bus);
if(n > max)
max = n;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.039 / U:3.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site