~ubuntu-branches/ubuntu/precise/pciutils/precise

« back to all changes in this revision

Viewing changes to lib/init.c

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2010-06-26 14:17:57 UTC
  • mfrom: (2.1.18 sid)
  • Revision ID: james.westby@ubuntu.com-20100626141757-xsp7xqv15qotwels
Tags: 1:3.1.7-4
Update pci.ids with snapshot dated 2010-06-12

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
  pci_define_param(a, "net.cache_name", "~/.pciids-cache", "Name of the ID cache file");
159
159
  a->id_lookup_mode = PCI_LOOKUP_CACHE;
160
160
#endif
161
 
  for(i=0; i<PCI_ACCESS_MAX; i++)
 
161
  for (i=0; i<PCI_ACCESS_MAX; i++)
162
162
    if (pci_methods[i] && pci_methods[i]->config)
163
163
      pci_methods[i]->config(a);
164
164
  return a;
185
185
  else
186
186
    {
187
187
      unsigned int i;
188
 
      for(i=0; i<PCI_ACCESS_MAX; i++)
 
188
      for (i=0; i<PCI_ACCESS_MAX; i++)
189
189
        if (pci_methods[i])
190
190
          {
191
191
            a->debug("Trying method %d...", i);
210
210
{
211
211
  struct pci_dev *d, *e;
212
212
 
213
 
  for(d=a->devices; d; d=e)
 
213
  for (d=a->devices; d; d=e)
214
214
    {
215
215
      e = d->next;
216
216
      pci_free_dev(d);