eepro100: Set power management capability using pci_reserve_capability
commitae543b498ca75aee6cadd67cb308501f5f267418
authorStefan Weil <weil@mail.berlios.de>
Tue, 6 Apr 2010 11:44:07 +0000 (6 13:44 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 7 Apr 2010 07:58:00 +0000 (7 10:58 +0300)
treea63945b762d67f2b8cf5a9fe3df1c245cc1e0f78
parent3dec59a1fb5e1144b655e00cca693240cab0bc70
eepro100: Set power management capability using pci_reserve_capability

pci_add_capability automatically updates PCI status and
PCI capability pointer, so use it. Use pci_reserve_capability
to make the new capability appear at the correct offset.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/eepro100.c