pci: consolidate pci_add_capability_at_offset() into pci_add_capability().