pci: Fold pci_get_bus_devfn() into its sole caller
commit2ad778b8c2175cb16f731d1e789e151a691172ce
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 13 May 2019 06:19:39 +0000 (13 16:19 +1000)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 29 May 2019 22:00:57 +0000 (29 18:00 -0400)
treef96b6738a88d02849f448c6857da716c7d2b3d7a
parent91f4c995f26795dbb6d1b09392a6448e389ed029
pci: Fold pci_get_bus_devfn() into its sole caller

The only remaining caller of pci_get_bus_devfn() is pci_nic_init_nofail(),
itself an old compatibility function.  Fold the two together to avoid
re-using the stale interface.

While we're there replace the explicit fprintf()s with error_report().

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20190513061939.3464-6-david@gibson.dropbear.id.au>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
hw/pci/pci.c