* [Kernel-janitors] [patch 1/12] pci_dev_b to list_for_each_entry:
@ 2004-08-20 19:00 Domen Puncer
0 siblings, 0 replies; only message in thread
From: Domen Puncer @ 2004-08-20 19:00 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1328 bytes --]
--- kjt2/arch/alpha/kernel/pci.c 2004-08-20 18:58:55.000000000 +0200
+++ kjt2-lfe/arch/alpha/kernel/pci.c 2004-08-20 19:45:27.000000000 +0200
@@ -285,7 +285,6 @@
/* Propagate hose info into the subordinate devices. */
struct pci_controller *hose = bus->sysdata;
- struct list_head *ln;
struct pci_dev *dev = bus->self;
if (!dev) {
@@ -309,9 +308,7 @@
pcibios_fixup_device_resources(dev, bus);
}
- list_for_each(ln, &bus->devices) {
- struct pci_dev *dev = pci_dev_b(ln);
-
+ list_for_each_entry(dev, &bus->devices, bus_list) {
pdev_save_srm_config(dev);
if ((dev->class >> 8) != PCI_CLASS_BRIDGE_PCI)
pcibios_fixup_device_resources(dev, bus);
@@ -408,11 +405,10 @@
static void __init
pcibios_claim_one_bus(struct pci_bus *b)
{
- struct list_head *ld;
+ struct pci_dev *dev;
struct pci_bus *child_bus;
- list_for_each(ld, &b->devices) {
- struct pci_dev *dev = pci_dev_b(ld);
+ list_for_each_entry(dev, &b->devices, bus_list) {
int i;
for (i = 0; i < PCI_NUM_RESOURCES; i++) {
@@ -431,12 +427,10 @@
static void __init
pcibios_claim_console_setup(void)
{
- struct list_head *lb;
+ struct pci_bus *b;
- list_for_each(lb, &pci_root_buses) {
- struct pci_bus *b = pci_bus_b(lb);
+ list_for_each_entry(b, &pci_root_buses, node)
pcibios_claim_one_bus(b);
- }
}
void __init
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-20 19:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-20 19:00 [Kernel-janitors] [patch 1/12] pci_dev_b to list_for_each_entry: Domen Puncer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.