pci: fix info pci with host bridge.
authorIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 8 Feb 2010 06:40:38 +0000 (15:40 +0900)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 13 Feb 2010 07:37:11 +0000 (07:37 +0000)
commit34f2f0e4cb451a48839bfe5bd82c09c6a1a99483
tree20a7bb06808cbef9ba0663f3a1b0b3709d7ef53f
parent017f684517e0ade766ba4de66306430ecfe3cf78
pci: fix info pci with host bridge.

This patch fixes 525e05147d5a3bdc08caa422d108c1ef71b584b5.
pci host bridge doesn't have header type of bridge.
The check should be by header type, instead of pci class device.

Cc: Blue Swirl <blauwirbel@gmail.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/pci.c