pci: consolidate pci_add_capability_at_offset() into pci_add_capability().
commitca77089d2d8e73283bfc73f03d954504561e1ce8
authorIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 6 Sep 2010 07:46:16 +0000 (6 16:46 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Sep 2010 17:10:04 +0000 (7 20:10 +0300)
tree7279dcdd4fc5a563ac788afe84928317e5007493
parent68f799944b72387c0ef9535612a212a5ea492059
pci: consolidate pci_add_capability_at_offset() into pci_add_capability().

By making pci_add_capability() the special case of
pci_add_capability_at_offset() of offset = 0,
consolidate pci_add_capability_at_offset() into pci_add_capability().

Cc: Stefan Weil <weil@mail.berlios.de>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/eepro100.c
hw/msix.c
hw/pci.c
hw/pci.h