pci: Convert shpc_init() to Error
commit344475e77d9acb981df958304f0631163dff7d65
authorMao Zhongyi <maozy.fnst@cn.fujitsu.com>
Tue, 27 Jun 2017 06:16:53 +0000 (27 14:16 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 Jul 2017 19:29:49 +0000 (3 22:29 +0300)
tree338c09aa43a2824504df8ad43daa5649c656d28a
parentf8cd1b0201c41d88bb97dcafb80348a0e88d8805
pci: Convert shpc_init() to Error

In order to propagate error message better, convert shpc_init() to
Error also convert the pci_bridge_dev_initfn() to realize.

Cc: mst@redhat.com
Cc: marcel@redhat.com
Cc: armbru@redhat.com
Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci-bridge/pci_bridge_dev.c
hw/pci/shpc.c
hw/pci/slotid_cap.c
include/hw/pci/shpc.h
include/hw/pci/slotid_cap.h