pci_free_caps(d);
pci_free_properties(d);
-
- pci_mfree(d->module_alias);
- pci_mfree(d->label);
- pci_mfree(d->phy_slot);
-
pci_mfree(d);
}
pci_reset_properties(struct pci_dev *d)
{
d->known_fields = 0;
+ d->phy_slot = NULL;
+ d->module_alias = NULL;
+ d->label = NULL;
pci_free_caps(d);
pci_free_properties(d);
}
int
pci_fill_info_v35(struct pci_dev *d, int flags)
{
- if (flags & PCI_FILL_RESCAN)
+ unsigned int uflags = flags;
+ if (uflags & PCI_FILL_RESCAN)
{
- flags &= ~PCI_FILL_RESCAN;
+ uflags &= ~PCI_FILL_RESCAN;
pci_reset_properties(d);
}
- if (flags & ~d->known_fields)
+ if (uflags & ~d->known_fields)
d->known_fields |= d->methods->fill_info(d, flags & ~d->known_fields);
return d->known_fields;
}