mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-03-04 09:04:39 -07:00
hw/sd/npcm7xx_sdhci: Use TYPE_SYSBUS_SDHCI definition
Use the macro instead of two explicit string literals. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Cédric Le Goater <clg@redhat.com> Message-Id: <20240702140842.54242-2-philmd@linaro.org>
This commit is contained in:
parent
bb8dacedd5
commit
f28cfc39d7
1 changed files with 2 additions and 1 deletions
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
#include "qemu/osdep.h"
|
||||
|
||||
#include "hw/sd/sdhci.h"
|
||||
#include "hw/sd/npcm7xx_sdhci.h"
|
||||
#include "migration/vmstate.h"
|
||||
#include "sdhci-internal.h"
|
||||
|
|
@ -162,7 +163,7 @@ static void npcm7xx_sdhci_instance_init(Object *obj)
|
|||
{
|
||||
NPCM7xxSDHCIState *s = NPCM7XX_SDHCI(obj);
|
||||
|
||||
object_initialize_child(OBJECT(s), "generic-sdhci", &s->sdhci,
|
||||
object_initialize_child(OBJECT(s), TYPE_SYSBUS_SDHCI, &s->sdhci,
|
||||
TYPE_SYSBUS_SDHCI);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue