diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-04-28 17:46:50 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-05-04 10:32:46 +0100 |
commit | 2e256c04c1852efd6a9b48e61fbcaced4b074c4e (patch) | |
tree | 49ae20ba7e9d49f17155aea33ddc034a1a696653 | |
parent | ab553ef74ee52c0889679d0bd0da084aaf938f5c (diff) | |
download | qemu-2e256c04c1852efd6a9b48e61fbcaced4b074c4e.zip qemu-2e256c04c1852efd6a9b48e61fbcaced4b074c4e.tar.gz qemu-2e256c04c1852efd6a9b48e61fbcaced4b074c4e.tar.bz2 |
hw/arm/mps2-tz: Use TYPE_IOTKIT instead of hardcoded string
By using the TYPE_* definitions for devices, we can:
- quickly find where devices are used with 'git-grep'
- easily rename a device (one-line change).
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200428154650.21991-1-f4bug@amsat.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | hw/arm/mps2-tz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/mps2-tz.c b/hw/arm/mps2-tz.c index a8dea7d..2c43041 100644 --- a/hw/arm/mps2-tz.c +++ b/hw/arm/mps2-tz.c @@ -395,7 +395,7 @@ static void mps2tz_common_init(MachineState *machine) exit(EXIT_FAILURE); } - sysbus_init_child_obj(OBJECT(machine), "iotkit", &mms->iotkit, + sysbus_init_child_obj(OBJECT(machine), TYPE_IOTKIT, &mms->iotkit, sizeof(mms->iotkit), mmc->armsse_type); iotkitdev = DEVICE(&mms->iotkit); object_property_set_link(OBJECT(&mms->iotkit), OBJECT(system_memory), |