rsrc_nonstatic.c (3b7a17fcdae532d29dffab9d564a28be08960988) | rsrc_nonstatic.c (89a74ecccd1f78e51faf6287e5c0e93a92ac096e) |
---|---|
1/* 2 * rsrc_nonstatic.c -- Resource management routines for !SS_CAP_STATIC_MAP sockets 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 * 8 * The initial developer of the original code is David A. Hinds --- 789 unchanged lines hidden (view full) --- 798 * by either ACPI resource tables or properly requested 799 * resources is too big. Therefore, don't do auto-adding 800 * of resources at the moment. 801 */ 802 if (s->cb_dev->bus->number == 0) 803 return -EINVAL; 804#endif 805 | 1/* 2 * rsrc_nonstatic.c -- Resource management routines for !SS_CAP_STATIC_MAP sockets 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 * 8 * The initial developer of the original code is David A. Hinds --- 789 unchanged lines hidden (view full) --- 798 * by either ACPI resource tables or properly requested 799 * resources is too big. Therefore, don't do auto-adding 800 * of resources at the moment. 801 */ 802 if (s->cb_dev->bus->number == 0) 803 return -EINVAL; 804#endif 805 |
806 for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) { 807 res = s->cb_dev->bus->resource[i]; | 806 pci_bus_for_each_resource(s->cb_dev->bus, res, i) { |
808 if (!res) 809 continue; 810 811 if (res->flags & IORESOURCE_IO) { 812 if (res == &ioport_resource) 813 continue; 814 dev_printk(KERN_INFO, &s->cb_dev->dev, 815 "pcmcia: parent PCI bridge I/O " --- 250 unchanged lines hidden --- | 807 if (!res) 808 continue; 809 810 if (res->flags & IORESOURCE_IO) { 811 if (res == &ioport_resource) 812 continue; 813 dev_printk(KERN_INFO, &s->cb_dev->dev, 814 "pcmcia: parent PCI bridge I/O " --- 250 unchanged lines hidden --- |