aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-05-23 08:12:07 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2023-06-09 23:38:16 +0300
commit4c030dd00f617b432524f7f9627192cb9b328bcb (patch)
tree78acc1e47931dc589397fe06c62ee4b072075d73
parent271233f21f66c10194a45c1bff1db61fe2694a22 (diff)
downloadqemu-4c030dd00f617b432524f7f9627192cb9b328bcb.zip
qemu-4c030dd00f617b432524f7f9627192cb9b328bcb.tar.gz
qemu-4c030dd00f617b432524f7f9627192cb9b328bcb.tar.bz2
hw/usb/hcd-ehci-pci: Simplify using DEVICE_GET_CLASS() macro
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r--hw/usb/hcd-ehci-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/hcd-ehci-pci.c b/hw/usb/hcd-ehci-pci.c
index 4c37c8e..345444a 100644
--- a/hw/usb/hcd-ehci-pci.c
+++ b/hw/usb/hcd-ehci-pci.c
@@ -74,7 +74,7 @@ static void usb_ehci_pci_realize(PCIDevice *dev, Error **errp)
static void usb_ehci_pci_init(Object *obj)
{
- DeviceClass *dc = OBJECT_GET_CLASS(DeviceClass, obj, TYPE_DEVICE);
+ DeviceClass *dc = DEVICE_GET_CLASS(obj);
EHCIPCIState *i = PCI_EHCI(obj);
EHCIState *s = &i->ehci;