OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
271233f
)
hw/usb/hcd-ehci-pci: Simplify using DEVICE_GET_CLASS() macro
author
Philippe Mathieu-Daudé
<philmd@linaro.org>
Tue, 23 May 2023 06:12:07 +0000
(08:12 +0200)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Fri, 9 Jun 2023 20:38:16 +0000
(23:38 +0300)
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>
hw/usb/hcd-ehci-pci.c
patch
|
blob
|
history
diff --git
a/hw/usb/hcd-ehci-pci.c
b/hw/usb/hcd-ehci-pci.c
index
4c37c8e
..
345444a
100644
(file)
--- 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;