hw/pci-host/uninorth: Use the PCI_FUNC() macro from 'hw/pci/pci.h'
commitd08b9c1b75c60c66ea65212a9dac90f58542e45e
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 11 Oct 2020 15:22:04 +0000 (11 17:22 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 4 Jan 2021 22:24:44 +0000 (4 23:24 +0100)
tree09c89562aa00907784761e5cd17ffb16848f80e0
parent0374cbd2f1b5bc68816c811bdaf266d98b21ecfe
hw/pci-host/uninorth: Use the PCI_FUNC() macro from 'hw/pci/pci.h'

We already have a generic PCI_FUNC() macro in "hw/pci/pci.h" to
extract the PCI function identifier, use it.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20201012124506.3406909-4-philmd@redhat.com>
hw/pci-host/uninorth.c