diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-06-27 12:03:44 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-07-23 00:37:32 +0200 |
commit | 6783ecf144c80f526c844cade3bf5593fba9e446 (patch) | |
tree | dfc0d138aceb0bc5f35795f62b77ec871c572780 /hw/timer/imx_gpt.c | |
parent | 3464700f6aecb3e2aa9098839d90672d6b3fa974 (diff) |
hw: Avoid use of QOM type name macros in VMStateDescriptions
The name field in a VMStateDescription is part of the migration state
versioning, so changing it will break migration. It's therefore a
bad idea to use a QOM typename macro to initialize it, because in
general we're free to rename QOM types as part of code refactoring
and cleanup. For the handful of devices that were doing this by
mistake, replace the QOM typenames with the corresponding literal
strings.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
[AF: Use TYPE_PVSCSI for TypeInfo instead]
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/timer/imx_gpt.c')
-rw-r--r-- | hw/timer/imx_gpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/timer/imx_gpt.c b/hw/timer/imx_gpt.c index 97fbebbe80..87db0e195c 100644 --- a/hw/timer/imx_gpt.c +++ b/hw/timer/imx_gpt.c @@ -142,7 +142,7 @@ typedef struct { } IMXGPTState; static const VMStateDescription vmstate_imx_timer_gpt = { - .name = TYPE_IMX_GPT, + .name = "imx.gpt", .version_id = 3, .minimum_version_id = 3, .minimum_version_id_old = 3, |